list endpoints (GET /messages, GET /contacts, GET /templates, and so on) share the same cursor-based pagination.
Request parameters
| Parameter | Description |
|---|---|
limit | Number of results to return, between 1 and 100. Defaults to 20. |
starting_after | A cursor for use in pagination. Pass the id of the last object from the previous page to fetch the next one. |
Response shape
has_more is true if there are additional results after the ones returned. When it’s false, you’ve reached the end of the list.
Paging through every result
Lists are always ordered most-recent-first by creation time. There is no way to page backwards from a cursor — request the previous page again without
starting_after advanced as far, or store cursors as you go.