Pagination and sorting
Lists come back a page at a time with a signed cursor. Page by newest activity, or by creation with updated_since to keep a copy in step.
Last updated 5 min read
On this page · 3 sections
Ticket search and a ticket's messages come back a page at a time. Ticket search comes newest activity first; a ticket's messages come oldest first.
Cursors
- limit sets the page size, from 1 to 100. When you leave it out it is 25 for ticket search and 50 for a ticket's messages.
- Pass next_cursor back as cursor to get the next page. When has_more is false you have every row. When has_more is true but next_cursor is null, the page was cut to fit and page_cut says how many rows came back (see Limits).
- A cursor is signed. It works only for the list and the workspace it came from; anything else is refused with cursor_invalid.
- A cursor works only with the order it came from. One from the other order is refused with cursor_invalid.
curl -sS --fail-with-body "https://api.current.day/v1/tickets?limit=100" \
-H "Authorization: Bearer $CURRENT_API_KEY"
# then, while has_more is true, pass next_cursor back as cursor
# (has_more true with next_cursor null: the page was cut; ask again with the same cursor and limit=page_cut.kept)
curl -sS --fail-with-body "https://api.current.day/v1/tickets?limit=100&cursor=<next_cursor>" \
-H "Authorization: Bearer $CURRENT_API_KEY"Sorting
In the default order (sort=activity, newest activity first), a ticket that gets new activity while you page moves to the top and is not seen again in that walk. A thread's new messages come at the end, on the last page.
To keep a copy in step, page with sort=created and updated_since: that order does not move while you page, so every ticket changed since your last run comes back exactly once. Start each run at the time the last one started.
curl -sS --fail-with-body "https://api.current.day/v1/tickets?sort=created&updated_since=2026-10-30T00:00:00Z&limit=100" \
-H "Authorization: Bearer $CURRENT_API_KEY"
# then pass next_cursor back as cursor, with the same sort and updated_since, until has_more is false
# (has_more true with next_cursor null: the page was cut; ask again with the same cursor and limit=page_cut.kept)How do I get every ticket from the Current API?
Page through GET /v1/tickets with sort=created and limit=100, passing next_cursor back as cursor until has_more is false. If has_more is true but next_cursor is null, the page was cut to fit: ask again with the same cursor and limit set to page_cut.kept (see Limits). That order does not move while you page, so a ticket that changes during the walk is not skipped. To keep a copy in step, add updated_since. See Pagination and sorting. The Current API is switched on per workspace; to turn it on for yours, contact support at support@current.day.
Why did a ticket disappear while I paged through the Current API?
In the default order, newest activity first, a ticket that changes while you page moves to the top and is not seen again in that walk. Page with sort=created and updated_since when you need every ticket exactly once. The Current API is switched on per workspace; to turn it on for yours, contact support at support@current.day.
