Pagination
API methods that can deliver lists of results typically support paginated responses. This allows you to retrieve large sets of data in smaller, more manageable chunks. Eon uses cursor-based pagination, where each page of results includes a cursor that you can use to request the next page of results.
Although this article covers how to use pagination in Eon API methods in general, always use the reference pages for your specific method.
Requests
The pagination request parameters are consistent across all paginated methods, although depending on the API method, they may be query parameters or in the request body in the queryParams object.
Behavior is the same, regardless of where the parameters are located.
If you request a filtered or sorted list of results in the first page, you’ll need to include the same filters and sorting options in subsequent pages, along with the nextToken returned in the previous response.
Request parameters
See request examples
Responses
The response to a paginated request includes the requested array of results and a nextToken that you can use to request the next page of results.