Sorting and Pagination

The API resources facilitates sorting and pagination for endpoints returning resource arrays via bulk fetches.
Through the sorting process, the resources are ordered, after which the pagination process returns a particular segment of these sequenced resources.
The control of sorting and pagination lies with URL query parameters.

These list-based API methods all conform to a shared structure, accepting at the very least these three parameters:

  • sortBy
  • fromPage
  • limit


curl \
  -H "Content-Type: application/json" \
  -H "x-api-key: api_key_xxx"


Query parameterDescriptionValues
sortBy (optional)Designate the field to sort on. The list of field to sort on is limited. Preface the field name with a hyphen (-) to sort in a descending order. Exclude the hyphen to sort in ascending order.Acceptable Values.
createdAt, updatedAt.

Default Value.
fromPage (optional)Designates the start page in the sort order from which data should be retrieved.Acceptable Values.
An integer.

Default Value.
limit (optional)A limit on the number of objects returned from the call.Acceptable Values.

Default Value.

Pagination response format

Field nametypeDescription
pageintegerThe index of the page from the result
countintegerThe number of items returned.
has_morebooleanIndicates if more elements exist beyond this set. If it's false, this set represents the end of the list.
itemsobjects arrayA collection comprising the actual response elements, segmented according to any request parameters.


  "page": 1,
  "count": 10,
  "has_more": true,
  "items": [