Pagination
All list endpoints support pagination and sorting.
Query Parameters
| Parameter | Default | Max | Description |
|---|---|---|---|
page | 1 | - | Page number (1-indexed) |
per_page | 20 | 100 | Items per page |
sort_by | -created_at | - | Sort field(s) |
Response Format
{
"total": 150,
"quantity": 20,
"records": [...]
}
Sorting
Sort by field ascending or descending:
field- Ascending-field- Descendingfield1,-field2- Multiple fields
Example:
GET /v1/users?sort_by=-name,created_at
Sorts by name (descending), then created_at (ascending).