Skip to main content
The SDK list methods return an object that is both an async iterator and has a .page() method. They use the API’s cursor pagination.

Iterate everything

The iterator fetches the following pages on demand:
limit sets the size of each page (1 to 100), not the total. To stop early, use break:

One page at a time

.page() returns a single page, with the pagination metadata:
For the next page, pass cursor:
The shape of Page<T> is:

Paginated methods

In routa.events.list(), the cursor is the ID of the last event, passed in after. See Reconcile events.
The two listings of RoutaPartner work the same way, but limit goes from 1 to 200 and the default is 50.