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

# Pagination for list endpoints

> Paginate Anbyan tenant API list endpoints using page, cursor, and perPage parameters.

List endpoints return a `data` array with pagination metadata. The endpoint reference identifies whether a list uses page or cursor pagination.

```bash theme={null}
curl "https://tenant.example.com/api/v1/customer/accounts?page=1&perPage=25" \
  -H "Authorization: Bearer $AURAXUS_TOKEN" \
  -H "Accept: application/json"
```

```json theme={null}
{
  "current_page": 1,
  "data": [],
  "from": 1,
  "nextPage_url": null,
  "path": "https://tenant.example.com/api/v1/customer/accounts",
  "perPage": 25,
  "prevPage_url": null,
  "to": 25,
  "total": 100
}
```

Common query parameters:

| Parameter | Description |
| - | - |
| `page` | Page number. |
| `perPage` | Number of records per page. |
| `sort` | Field to sort by, when supported. |
| `order` | `asc` or `desc`. |


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