Calls: Saved request_id ·
Knowledge: Idempotency-Key ·
Other writes: Read and reconcile
The important part
- A call request UUID is not the same as a Knowledge Idempotency-Key header.
- Keep the original account, API base URL, identity and exact input while reconciling.
- A new identity represents a new action and can create duplicate work.
Save the operation before sending
Store the intended effect, the owning account association, the exact request and its identity in private durable storage. Do not include the API secret in that operation record. Record the returned resource ID and outcome separately.Reconcile an outbound UUID
A first call acceptance returns 201. Reusing an already accepted UUID with matching input can return 200 withreplayed:true and the existing call ID. Pending, unknown or conflicting requests are refused; they do not authorise another call under a replacement UUID.
Use GET request state and retain pending, accepted, rejected and unknown as different results. A 404 or failed read is not permission to redial. An accepted call ID remains important even if the launch reply includes request_status:unconfirmed and safe_to_retry:false.
The same UUID in another account is a separate scope. See the complete saved-call workflow, including durable preparation and process restarts.
Knowledge operations
Use 8–128 letters, digits, dots, underscores, colons or hyphens for the required header. Theprompt: prefix is reserved. A new import, an edit and draft acceptance are separate intended operations, each with its own saved key.
A revision guard protects newer state; it is not the operation identity. On stale_revision, reread the correct base, source or draft and review the change before making a new decision. Never turn a conflict into a loop that overwrites newer work.
HTTP 202 accepts a job. Poll the returned job ID and inspect its result. Preparation, review and publication remain separate stages. An accepted source does not confirm live topics changed.
Other operations
Do not add a genericIdempotency-Key and assume it protects SMS, campaigns, key rotation or number updates. Disable automatic mutation retries unless the exact operation documents a safe recovery action.
For number credentials, only credential_save_pending permits deliberate identical-input completion of the local save. carrier_outcome_unknown requires reconciliation. For calendar consent, read the connection state before starting another flow after an uncertain reply.