totalCount field with the total number of matching items across all pages.
Parameters
Paginated endpoints accept two parameters:offset: the number of items to skip before returning results (defaults to0)limit: the maximum number of items to return in one page (defaults vary by endpoint, commonly20or50, with a maximum typically of100)
offset and limit are either passed as query string parameters on a GET request or included in the request body of a POST request. Each endpoint’s reference page lists the accepted range and the exact location for both parameters.
Ordering
Endpoints that support ordering accept two additional parameters:orderBy: the field to sort by (accepted values are listed on the endpoint’s reference page)orderDirection:ascfor ascending ordescfor descending (defaults toasc)
Response format
A paginated response contains atotalCount field with the total number of matching items across all pages, and an array of items for the current page. The array is nested under a field named after the resource (for example, identities, groups, or certificates):
offset = 0 and increase offset by limit on each following request. Stop when the running count of items read reaches totalCount.
Example
The following request reads machine identities in an organization, 50 at a time, sorted by name:offset set to 50.
Endpoints without pagination
Some endpoints return their entire result in a single response without paginating. For example,GET /api/v4/secrets returns all secrets in the specified project, environment, and folder path. Each endpoint’s reference page indicates whether pagination applies.