How pagination works
Most list endpoints use cursor-based pagination. To get the next page, set the response’smeta.nextCursor value as cursor in the next request.
The following endpoints use a different method or parameter name.
Request parameters
Parameters for cursor-based endpoints:
Most endpoints default to 50 items and accept up to 200 items.
Some endpoints use a different default or maximum.
For example, the alert list and the alert mute list default to 20 items and accept up to 100 items.
An employee’s change history defaults to 10 items.
Check the
limit description of each endpoint in the reference.
If limit is greater than the maximum, the API returns 400 with validation_exception.
An invalid cursor value can cause the request to fail with 400.
Parameters for listing login users (/users):
Response
Cursor-based endpoints return the following format.
Use
meta.nextCursor to tell whether you’ve reached the end. It’s null on the last page.
Don’t rely on meta.totalItems for this, because it can be null.
Listing login users (/users) returns the following format.
metadata.nextPage is null, you’re on the last page.

