Pagination
Reviewed public list endpoints in the Zentra API return paginated results to keep response times predictable and payloads bounded, but the query style can vary by resource.How It Works
Transfers and virtual accounts currently documentpage plus limit:
limit plus offset:
Parameters
| Parameter | Type | Default | Max | Description |
|---|---|---|---|---|
page | integer | 1 | - | Page number for resources that expose page-based pagination |
limit | integer | 20 | 100 | Results per page |
offset | integer | 0 | - | Record offset for resources that expose offset-based pagination |
Response Format
Paginated responses include apagination object with metadata:
Pagination Object
| Field | Type | Description |
|---|---|---|
page | integer | Current page number |
limit | integer | Results per page |
total | integer | Total number of items |
pages | integer | Total number of pages |
has_more | boolean | Whether there are more pages |
Examples
Fetching First Transfer Page
Fetching All Transfer Pages
Filtering with Pagination
Combine pagination with filters for more specific queries:Sorting
Sorting support varies by resource. For example, reviewed virtual account listing supports:Performance Tips
Use Maximum Limit
Use Maximum Limit
When fetching multiple pages, use
limit=100 to minimize the number of requests.Filter First
Filter First
Apply filters to reduce the dataset before paginating.
Cache Results
Cache Results
Cache paginated results when possible to avoid repeated API calls.
Use Webhooks
Use Webhooks
Instead of polling for new data, use webhooks for real-time updates.
Avoid Deep Pagination
Avoid Deep Pagination
Fetching very high page numbers can be slow. Prefer date-range filters or incremental sync patterns where supported.
Cursor-Based Pagination
Cursor-based pagination is not currently part of the reviewed public gateway contract. If Zentra introduces it later, it will be documented as a separate reviewed route shape instead of being implied by the current page-and-limit contract.Reviewed List Endpoints
The following reviewed public endpoints currently document paginated list behavior:| Endpoint | Resource | Query Style |
|---|---|---|
GET /api/v1/transfers | Transfers | page, limit |
GET /api/v1/virtual-accounts | Virtual Accounts | page, limit, optional offset |
GET /api/v1/cards | Cards | limit, offset |
GET /api/v1/identity/customers | Identity Customers | tenant-specific contract details may narrow the exact filter set |