Paging through results
Apagination
object is returned for paged endpoints, use the after
cursor to get the next page of results.
Pagination object in a response
?after=A-789
to the request to get the next page of results.
Detecting the end of the results
Theafter
cursor is always returned in the response if there are results in the current page. There are no more results if you receive an empty data array in the response.
Paging backwards
You can page in reverse by using thebefore
cursor. For example you would ?before=A-123
to the request to get the previous page of results.
Controlling the number of records returned
Some endpoints support alimit
parameter to control the number of records returned. The default page size is documented in the endpoint’s reference.