Pagination
All list endpoints use cursor-based pagination. This is more reliable than offset pagination for real-time data.
How it works
- Make your first request (optionally with a
limitparameter) - Check
pagination.hasMorein the response - If
true, passpagination.cursoras thecursorquery parameter in your next request
# First page
curl "https://api.briehq.com/v1/slices?workspaceId=ws_123&limit=10" \
-H "Authorization: Bearer brie_pat_xxx"
# Next page (using cursor from previous response)
curl "https://api.briehq.com/v1/slices?workspaceId=ws_123&limit=10&cursor=eyJpZCI6Ii4uLiJ9" \
-H "Authorization: Bearer brie_pat_xxx"
Response shape
{
"data": [ ... ],
"pagination": {
"cursor": "eyJpZCI6Ii4uLiJ9",
"hasMore": true,
"limit": 10
}
}
When hasMore is false, you've reached the last page and cursor will be null.
Limits
The limit parameter accepts values from 1 to 100. The default is 25.