Some API calls can return a lot of results, so must be paginated.
By default Trelica APIs return a maximum of 100 results.
You may also request a maximum number of results to return using the
limitquery-string parameter. You are not guaranteed to receive that number - you may receive less - it is just an upper limit.
Additional pages of data can be requested using the
afterquery-string parameter. This value should be a pagination token which is supplied to you by Trelica.
nextattribute in the response contains the full URL to request for the next page of data, e.g.
You should continue requesting data until no further results are returned (i.e. until you receive an empty JSON array).
countquery-string parameters, and information is returned in the response JSON to help you request the next page.
If you request
/api/scim/v2/users?startIndex=1&count=10, you might get some response JSON like this:
/* ... */
/* ... */
You can keep requesting pages, incrementing
startIndexby 10 each time until all results are fetched. So in the example above, your next page request will be to