Pagination
Page through list endpoints with cursors.
List endpoints such as GET /api/v1/Records are cursor-paginated. Rather than page numbers, you ask for a number of
items relative to a cursor, and the response hands you the cursors you need to keep going. This stays stable even while
records are being added.
Response shape
A paginated response wraps the results alongside the cursors and a total count:
itemsholds the page of results.afterCursorpoints at the next page.beforeCursorpoints at the previous page.totalCountis the total number of matching records.
Request a page
Pass a cursor together with a limit. To move forward, use afterCursor with limitAfter; to move back, use
beforeCursor with limitBefore. Omit the cursor on the first request to start from the beginning.
Set sortDescending=false to return oldest records first. When afterCursor comes back empty, you have reached the end
of the results.