The Retell AI API's List Calls endpoint supports pagination to efficiently manage large sets of call data. This is achieved through the pagination_key parameter, which allows you to retrieve data in sequential pages.
Pagination Parameters:
pagination_key: A unique identifier representing the starting point for the next set of results. This key corresponds to a specific call ID and is exclusive, meaning the call associated with this ID is not included in the fetched results. Typically, you use the last call ID from the current list as the pagination_key for the subsequent request. If not set, the retrieval starts from the beginning.
limit: Defines the maximum number of calls to return in a single response. The default value is 100.
Example Workflow:
Initial Request: Make a request without the pagination_key to retrieve the first set of calls.
Subsequent Requests: Use the last call ID from the previous response as the pagination_key in the next request to fetch the following set of calls.