Pagination

All list endpoints use cursor-based pagination. This is more reliable than offset pagination for real-time data.

How it works

  1. Make your first request (optionally with a limit parameter)
  2. Check pagination.hasMore in the response
  3. If true, pass pagination.cursor as the cursor query 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.