Guide: API reference ·
Topic: Retry rules
The important part
Never automatically retry a write. A timeout, broken connection, or server error can arrive after the operation took effect. Repeating it can create another agent, call, message, campaign, invitation, or job.
- Use bounded retries for eligible reads.
- Never automatically create a new call intent to recover an unknown launch result.
Choose the next action
Only read-only GET requests belong in an automatic read retry loop. The Knowledge draft GET projects legacy repairs without saving; explicit save or accept persists them. GET retries need a limit, overall deadline, and cancellation. Honour
RateLimit-Limit, RateLimit-Remaining, and Retry-After when returned. Do not assume a POST is harmless because its name contains “test” or “preview”.
Check an uncertain result
- Save the operation, resource ID, request time, safe correlation IDs, and receipt. Keep secrets and customer content out of logs.
- Read the affected resource or job. Compare the intended change with stored state.
- If completion is confirmed, continue from that resource. If a refusal is confirmed and no work occurred, decide whether a corrected attempt is appropriate.
- If still unknown, stop and seek support with safe identifiers. An empty or delayed list does not confirm that a call or message was never sent.
Idempotency is operation-specific
There is no universalIdempotency-Key promise. Sending that header does not make agent creation, call creation, SMS, or other writes safe to replay.
Knowledge mutations and test messages use their documented idempotency identity. Preserve the same key and payload for the same logical operation; a changed payload under a used key can return 409 idempotency_conflict. Check each operation’s required key and revision fields. A replay can return saved work; it still does not authorise an automatic write retry policy.
Client settings
Disable write retries in the HTTP client, SDK, proxy, job runner, and application. If a client only offers a global retry setting, use zero for the client that performs writes. Confirm CLI and MCP behaviour for the installed version before production use. Use the error catalog. In particular,outcome_unknown, campaign_outcome_unknown, and carrier_outcome_unknown require reconciliation, not repetition.
Reconcile an outbound request UUID
Save one UUID before the first request for an intended call. Persist it with the request payload so a process restart cannot accidentally create a new intent. Supply it as the JSON fieldrequest_id, not an Idempotency-Key header.
A 201 can also include
request_status:"unconfirmed" and safe_to_retry:false: the call ID is known even though the final journal acknowledgement was lost. Never redial it. A new UUID is a new explicit call intent. Requests without request_id retain their existing behaviour and have no launch replay protection.
Read outbound request status. A 404 or an empty history page does not confirm that an uncertain call was never placed.