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

# Pagination

> Paging through Nexus collection endpoints

Paginated collection endpoints accept `limit` and `offset` query parameters.

## Parameter handling

The API coerces rather than rejects out-of-range paging values:

| Parameter | Input | Effective value |
| - | - | - |
| `limit` | missing, non-integer, zero, or negative | `100` (the default) |
| `limit` | greater than 100 | clamped to `100` |
| `offset` | missing, non-integer, or negative | `0` |

## Response shape

The response body includes a `links` object with `next` and `prev` URLs. A link is
`null` when that page does not exist — `prev` on the first page, `next` on the last.

```json theme={null}
{
  "data": [],
  "links": {
    "next": "…?limit=100&offset=100",
    "prev": null
  }
}
```

The total result count is returned in the `X-Total-Count` response header.

> [!TIP]
>
> Follow `links.next` until it is `null` rather than computing offsets from
> `X-Total-Count` — that way a collection changing underneath you can't cause you to
> skip a page.


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