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

# Pagination

> Listing campaigns, leads and email accounts a page at a time.

Three lists are read a page at a time. Send `page` (from 1) and `limit` in the query:

| Route | `limit` | The page's paging |
| - | - | - |
| `GET /v1/campaigns` | 10 by default, at most 100 | `pagination`: `total`, `page`, `limit`, `totalPages`, `hasNextPage`, `hasPreviousPage` |
| `GET /v1/leads/{uuid}` | 10 by default, at most 100 | `pagination`: `total`, `page`, `limit`, `totalPages` |
| `GET /v1/email-accounts` | 20 by default, at most 100 | `data`: `items`, `total`, `page`, `limit` |

```bash theme={null}
curl "https://prod.leadvector.app/v1/campaigns?page=2&limit=50" \
  -H "x-api-key: YOUR_API_KEY"
```

Ask for the next page until you have `total` items, or, for campaigns, while `hasNextPage` is true. Lists are newest first.

The inbox list (`GET /v1/inbox`) is not paged: it answers every item at once, with their count in `total`.


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