- 23 Mar 2023
- 1 Minute to read
- DarkLight
Pagination
- Updated on 23 Mar 2023
- 1 Minute to read
- DarkLight
Torq API supports bulk fetches via List API methods for several resources. For example, you can list all secrets and list all roles. These list API methods share a common structure, taking these two parameters: pageSize
and pageToken
.
Page size
Here's what you need to know about the pageSize
parameter.
- Default value: The default value for
pageSize
is 50. This means that if you don't provide a value for the parameter in the request, a maximum of 50 results will be returned per page. - Maximum value: 100.
Page token
When you perform a List
operation and the response contains a value for the pageToken
key, this indicates that there is an additional page to retrieve.
To retrieve the next page of results, you need to make an identical request and provide the pageToken
that was returned in the previous request.