Skip to main content
The Core API supports sorting and pagination for endpoints that return arrays of resources. The sorting mechanism places the resources in order; the pagination mechanism then returns a specific range of those ordered resources. You control sorting and pagination through URL query parameters. A GET request to the /users endpoint returns an array of users. By default, the sorting mechanism places the most recently modified users at the top of the sort order (sort_by=-lastModifiedTime) and the pagination mechanism then returns the first five users (count=5&start_index=0). The following URL shows this default setting in an explicit form:
Bash
The next five users in the sort order could then be returned with this URL (start_index is now set to 5):
Bash

Query parameter details

The following table provides details on the URL query parameters that control the sorting and pagination of returned arrays.

Response field details

Sample response body

JSON