Pagination
List endpoints in the Agentix API use offset-based pagination. You control how many items to retrieve and where to start in the result set.Query Parameters
| Parameter | Type | Default | Max | Description |
|---|---|---|---|---|
limit | integer | 20 | 100 | Number of items to return per page |
offset | integer | 0 | — | Number of items to skip from the beginning |
Response Format
Paginated endpoints return an object with anitems array and a total count:
| Field | Type | Description |
|---|---|---|
items | array | The page of results |
total | integer | Total number of matching items across all pages |
total to calculate the number of pages: Math.ceil(total / limit).
Paginated Endpoints
The following list endpoints supportlimit and offset:
| Endpoint | Description |
|---|---|
GET /api/contacts | List contacts |
GET /api/conversations | List conversations |
GET /api/runs | List workflow runs |
GET /api/broadcasts | List broadcasts |
GET /api/broadcasts/{id}/recipients | List broadcast recipients |
GET /api/groups/{id}/contacts | List group contacts |
Some list endpoints (like
GET /api/workflows, GET /api/tags, GET /api/tools) return all items without pagination. These endpoints typically have smaller result sets.Examples
First Page
cURL
Node.js
Fetching All Pages
Node.js