Skip to main content

Pagination

List endpoints return a paginated payload:
Control pagination with query parameters:

Filtering

Filters are exposed as query parameters. Each list endpoint declares the filterable fields in the API Reference (see the Parameters tab). For example, GET /customers/ accepts country, email, name, tax_id, created, subscriptions, sources. Common patterns:

Filtering by metadata

Resources that expose a metadata field accept arbitrary filters using the metadata__<key> pattern:

Ordering

Use ordering to sort the results. Prefix the field name with - for descending order:
Each list endpoint declares its supported ordering fields. Some endpoints expose search for free-text matching across configured fields: