How it works
All list endpoints use cursor-based pagination. Each response includes pagination metadata:Requesting pages
Pass thecursor from the previous response to fetch the next page:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Bem-vindo ao nosso novo hub de docs! Central de Ajuda + Docs para Desenvolvedores em um só lugar.
Cursor-based pagination for list endpoints.
{
"data": [...],
"pagination": {
"cursor": "eyJpZCI6IjEyMyJ9",
"hasMore": true,
"total": 487
}
}
cursor from the previous response to fetch the next page:
# First page (default: 50 items)
curl ".../brands?limit=20"
# Next page
curl ".../brands?limit=20&cursor=eyJpZCI6IjEyMyJ9"
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 50 | Items per page (max 100) |
cursor | string | — | Cursor from previous response |
async function fetchAllBrands(workspaceId) {
let cursor = null;
const allBrands = [];
do {
const url = new URL(`.../brands`);
url.searchParams.set('limit', '100');
if (cursor) url.searchParams.set('cursor', cursor);
const response = await fetch(url, { headers: { Authorization: `Bearer ${apiKey}` } });
const { data, pagination } = await response.json();
allBrands.push(...data);
cursor = pagination.hasMore ? pagination.cursor : null;
} while (cursor);
return allBrands;
}