Skip to Content

Pagination

Cursor pagination for list endpoints.

List endpoints return:

{
  "object": "list",
  "has_more": true,
  "data": [ … ]
}

Query parameters

ParamDescription
limitPage size, typically 1–100 (default 20)
afterReturn items after this id (newer/older depending on endpoint ordering)
beforeReturn items before this id

Do not send after and before together.

Walking pages

  1. Request with limit.
  2. If has_more is true, take the last id in data and pass it as after (or follow the endpoint’s documented direction).
  3. Stop when has_more is false or data is empty.

Ids are opaque UUIDs — do not invent cursors.

On this page