Pagination
List endpoints return pages of results with a cursor. Pass next_cursor back to get the next page.
Applies to
v1 + v2
→
Changed in v2
Code written for v1 needs a small update for this topic. The migration guide shows each change side by side.
Cursor pagination
List endpoints return data, has_more and next_cursor. Pass next_cursor as the cursor parameter to fetch the next page. Cursors are opaque strings, so store them as-is and don't build your own.
Page size
Set limit between 1 and 100. The default is 25. Larger pages mean fewer requests but slower responses, so 100 is best for back-office jobs and 25 for user-facing lists.
Changed in v2
v1 used page and per_page numbers. v2 replaces them with cursors, which stay correct when new records arrive while you page.