Our APIs return paginated results. Our paging is based on a cursor-based pagination system, which means that the API returns a set of results and a cursor (Documentation Index
Fetch the complete documentation index at: https://botpress.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
nextToken) that you can use to retrieve the next set of results. You can use this cursor in 2 ways:
1. Pagination with API Query Parameters
To retrieve paginated data, you can use thenextToken string value returned by the previous request in your next request query parameter.
If your first API request returns the following response:
nextToken until the response body no longer includes a nextToken value, indicating that there are no more results.
2. Pagination with the Botpress Client
Using .collect() to Fetch Results
You can also paginate results using the.collect() function provided by our client utilities. This is useful when you want to retrieve a specific number of items at once.
.collect() function will handle pagination for you automatically.