Chatasist
Open App
API Reference/Pagination

Pagination

How list endpoints page through results.

List endpoints use cursor-based pagination.

Requesting a page#

  • per_page — items per page, 1–100 (default 15).
  • cursor — the cursor for the page you want.
curl "https://api.chatasist.com/api/v1/customers?per_page=50" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json"

Reading the response#

Collections return data, links, and meta:

{
  "data": [ /* ... */ ],
  "links": {
    "first": null,
    "last": null,
    "prev": null,
    "next": "https://api.chatasist.com/api/v1/customers?cursor=eyJpZCI6..."
  },
  "meta": {
    "path": "https://api.chatasist.com/api/v1/customers",
    "per_page": 50,
    "next_cursor": "eyJpZCI6...",
    "prev_cursor": null
  }
}

To continue, either follow the full URL in links.next / links.prev, or pass meta.next_cursor / meta.prev_cursor back as the cursor query parameter.

links.first and links.last are always null for cursor pagination — there is no fixed page count to jump to.