Skip to content

Pagination

Lists take page, starting at 1, and limit, up to 100; a higher limit is clamped:

curl -sS -H "Authorization: Bearer $TOKEN" "$BASE/products?collection_id=$COLLECTION_ID&page=2&limit=100" | jq '.meta'

Every list returns its records in data and the totals in meta:

{
"data": [
{
"id": "c47b..."
}
],
"meta": {
"page": 1,
"limit": 100,
"count": 137,
"pages": 2
}
}

A page past the end returns an empty data. GET /brands is not paginated.