Pagination
  • 23 Mar 2023
  • 1 Minute to read
  • Dark
    Light

Pagination

  • Dark
    Light

Article Summary

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.


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.