Response envelope
Every paginated endpoint returns a JSON object with these fields. The item key name varies by endpoint (documents, usageData, or meters).
Example (documents)
| Field | Type | Description |
|---|---|---|
total* | Integer | Total number of records across all pages (e.g., totalDocuments, totalUsageData, totalMeters) |
perPage | Integer | Number of records per page (fixed at 100) |
totalPages | Integer | Total number of pages |
currentPage | Integer | Current page number (1-indexed) |
hasNext | Boolean | Whether a next page exists |
hasPrevious | Boolean | Whether a previous page exists |
| Items array | Array | Records for the current page (key name matches the endpoint: documents, usageData, or meters) |
Query parameters
| Parameter | Default | Description |
|---|---|---|
page | 1 | Page number (1-indexed) |
Example: iterate all pages
Tips
- Check
totalPageson the first response to estimate total requests needed. - If you request a page beyond the last page, the API returns the last valid page instead of an error.
- All list endpoints use this same envelope format — documents, usage data, and meters.