next_cursor back as the cursor query parameter to fetch the next
page. When next_cursor is null, you have reached the end.
limit runs from 1 to 100 and defaults to 25.
Why not page numbers
A support queue changes while you are reading it. With offsets, a ticket arriving between two of your requests shifts every row down, so page 2 repeats a row from page 1. A ticket being resolved shifts them up, so a row is skipped altogether. A cursor points at a position in the results, not a count from the start, so neither happens.Walking every page
An empty
data array with a non-null next_cursor is possible. Stop when
next_cursor is null, not when a page comes back empty.Filtering
Filters go on the query string and combine with AND. They are part of the cursor, so keep them identical across a walk. Changing a filter mid-walk makes the cursor meaningless.
The comma form exists because the queue’s idea of “ongoing” is
new and open
seen together, and inventing a sixth status for that would have meant a filter
vocabulary that does not match the state machine.