Pagination functionality is available for the Get All Assets
, Get All Services, Get All Owned IP Ranges, and Get All Alerts endpoints. This functionally uses a page token flow to paginate through all of the data.
To use this functionality, add the following field to the request data on the first request to the API:
"use_page_token": true
If added to the initial request, the response for that request will include a page token that can be passed into the next request:
"next_page_token": "string"
An example of how to use this functionality is shown in the Get All Assets section of the Xpanse API reference.
This following error code is specific to page token flow:
401: an expired token is passed into the next_page_token param. Expiration for the token is 24 hours.