Pagination

List endpoints use cursor pagination.

Cursor pagination

Requests may include limit and cursor. Responses may include next_cursor when another page exists.

limit defaults to 25 and is capped at 100. A larger value is clamped to 100 rather than rejected, so a client asking for 500 receives 100 and a next_cursor.

The cursor is opaque. Clients should send it back unchanged with the same endpoint and filters used for the previous page.

curl "https://api.slab5.com/v1/tasks?status=open&limit=25" \
  -H "Authorization: Bearer $SLAB5_API_KEY"

curl "https://api.slab5.com/v1/tasks?status=open&limit=25&cursor=$NEXT_CURSOR" \
  -H "Authorization: Bearer $SLAB5_API_KEY"

When next_cursor is absent, the list has no additional page.

Was this page helpful?