Skip to main content

Pagination

All list endpoints support pagination and sorting.

Query Parameters

ParameterDefaultMaxDescription
page1-Page number (1-indexed)
per_page20100Items 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 - Descending
  • field1,-field2 - Multiple fields

Example:

GET /v1/users?sort_by=-name,created_at

Sorts by name (descending), then created_at (ascending).