invalid_cursor
- HTTP status
- 400
- Retry
- No
- Execution
- Not applicable
- Admin needed
- No
Invalid pagination cursor. Cursors are opaque and bound to the filters of the list request that produced them. A cursor that was edited, truncated, produced by a different list, or reused with different filters is refused.
What it means
The API returns HTTP 400 with error.code set to invalid_cursor. The default message is: "The pagination cursor is invalid or does not match these filters."
Common causes
- The cursor string was modified or truncated.
- Filters changed between pages.
- A cursor from one list was sent to another list.
How to identify it
Check the response status (400) and error.code (invalid_cursor). Branch on error.code, not on the message text: messages can be reworded, codes do not change within v1. Log error.request_id (also sent as the X-Request-Id header) so support can find the request.
How to fix it
- Send
next_cursorexactly as returned, with the same filters. To change filters, start again without a cursor.
Retry guidance
Sending the request unchanged fails the same way. Fix the cause first (see How to fix it), then send it again.
Did anything happen?
This error is about the request itself; it does not describe whether an earlier request did anything.
Who can fix it
The developer who sends the request can fix it; no administrator action is normally needed.
When to contact support
If the error persists after the steps above, contact support@relationsai.com. See Support for what to include (the request_id, the time in UTC, the operation, and whether you used a test or live key) and what never to send (API keys, Authorization headers, webhook signing secrets, recording links, transcripts or customer data).
Example error response
JSON
Incorrect and corrected request
Incorrect: The cursor came from a page listed with status=ended; the filter changed between pages.
Text
Corrected: The same filters as the request that returned this next_cursor. To change filters, start again without a cursor.
Text
Operations that can return this error
GET /agents: List agentsGET /phone-numbers: List phone numbersGET /calls: List callsGET /campaigns: List campaignsGET /campaigns/{campaign_id}/recipients: List recipientsGET /contacts: List contactsGET /dnc-entries: List or look up do-not-call entriesGET /webhook-endpoints: List webhook endpointsGET /webhook-endpoints/{webhook_endpoint_id}/deliveries: List deliveries
See all codes in the error-code reference.