> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcluster.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pagination

> Every list uses limit and cursor.

Every list returns the same shape:

```json theme={null}
{ "data": [], "next_cursor": "eyJvIjo1MCwiZiI6…" }
```

* `limit` sets the page size. Each list documents its default and maximum.
* To get the next page, send the same request with `cursor` set to `next_cursor`.
* `next_cursor` is `null` on the last page.
* There are no total counts.

```bash theme={null}
curl "https://api.getcluster.ai/v1/campaigns?limit=50&cursor=$NEXT_CURSOR" \
  -H "Authorization: Bearer $CLUSTER_API_KEY"
```

## Rules

* Treat cursors as opaque. Do not build or edit them.
* A cursor only works with the filters it was issued for. Keep the filters the same on every page. Changing one mid-way usually returns `400 invalid_cursor`; either way, start again without a cursor.
* New rows can arrive while you page, which can shift a row onto the next page. De-duplicate by `id`.

For `POST /analytics/records`, the filters are in the body and `limit` and `cursor` are in the query string. Send the same body with each page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.