Skip to content
  • Auto
  • Light
  • Dark
Get Started

Pagination in the ConductorOne API

When making LIST or SEARCH requests to the ConductorOne API, use the page_size and page_token parameters to navigate through the list of results.


Include the page_size parameter to tell the API how many search or list results to show on each page.

  • page_size accepts a number between 10 and 100.
  • If you enter a number smaller than 10, the system will return 10 results per page.
  • If you enter a number larger than 100, the system will return 100 results per page.
  • The default value is 25.

If your query returns more results than will fit on one page of the size you specified with page_size, you’ll see a unique nextPageToken value in the response. Include this value with the page_token parameter in your next request to see the next page of results.

  • You do not need to include page_token in your initial request (you can omit it or leave it empty).
  • You must include it for each subsequent request to paginate through results.

Terminal window
curl --request GET \
--url 'https://example.conductor.one/api/v1/apps/sample/entitlements?page_size=50'
{
"list": [
{
"appEntitlement": {
// List of 50 app entitlements with their details.
}
}
],
"nextPageToken": "samplepagetoken1"
}

Terminal window
curl --request GET \
--url 'https://example.conductor.one/api/v1/apps/sample/entitlements?page_size=50&page_token=samplepagetoken1'

📝 Note: For this GET example, the page_size and page_token are included in the query.
For POST requests, include page_size and page_token in the request body instead.

{
"list": [
{
"appEntitlement": {
// List of 50 more app entitlements with their details.
}
}
],
"nextPageToken": "samplepagetoken2"
}

Terminal window
curl --request GET \
--url 'https://example.conductor.one/api/v1/apps/sample/entitlements?page_size=50&page_token=samplepagetoken2'
{
"list": [
{
"appEntitlement": {
// List of 26 more app entitlements with their details.
}
}
],
"nextPageToken": ""
}

ℹ️ An empty nextPageToken in the response indicates that you’ve reached the end of the list.