All list endpoints return paginated results. You control pagination with page and limit query parameters.
Parameters
The page number to retrieve. Must be 1 or greater.
The number of items per page. Minimum 1, maximum 100.
Every paginated response includes a pagination object alongside the data array.
{
"data": [...],
"pagination": {
"page": 1,
"limit": 25,
"total": 143
}
}
The number of items per page.
The total number of items across all pages.
Example
curl -X GET "https://hub.banditshq.com/api/v1/tables?page=2&limit=10" \
-H "Authorization: Bearer lasso_..."
Iterating through all pages
let page = 1;
const allTables = [];
while (true) {
const result = await client.tables.list({ page, limit: 100 });
allTables.push(...result.data);
if (page * 100 >= result.pagination.total) break;
page++;
}