Pagination & filtering

List endpoints return results in pages. Use pagination to retrieve more results and filters to narrow the collection.

Results appear in data, with pagination information in metadata.

Retrieve the next page

  1. Send your first request without nextToken.
  2. If the response includes metadata.nextToken, send that value as the nextToken query parameter in your next request.
  3. Continue until the response no longer includes metadata.nextToken.

Treat the token as an opaque value: pass it back unchanged and let your HTTP client handle URL encoding.

Keep the same filters and sort order throughout the sequence. If you change them, start again without a token.

Choose a page size

Use pageSize to control how many results a page can contain. Each endpoint documents its default and maximum page size.

Use the presence of metadata.nextToken, rather than the number of results, to decide whether to continue.

Filter results

Filters are query parameters. Each endpoint documents the fields, values, and combinations it supports.

Different filters combine with AND to narrow the results. Values within an array filter combine with OR.

For array filters, repeat the parameter for each value:

GET /transactions?types=card-purchase&statuses=settled&statuses=declined

This returns transactions where the type is card-purchase AND the status is either settled OR declined:

type = card-purchase AND (status = settled OR status = declined)

Filters narrow the resources your API key can access; they do not grant additional access.

A valid request with no matching results returns an empty data array.

Sort results

Where supported, use sortBy to choose the field and sort to choose ascending (asc) or descending (desc) order.

Check the endpoint documentation for supported fields and defaults, and keep the sort settings unchanged when requesting subsequent pages.