Skip to main content
Send an Idempotency-Key header so you can repeat a request after a timeout or a dropped connection:
These operations accept the header:
  • POST /v1/leads
  • POST /v1/messages
  • POST /v1/calls
  • POST /v1/webhook_endpoints

Key rules

  • A key has up to 255 characters.
  • Use a different key for each operation. A UUID v4 works, or a format such as <event>/<entity-id>.
  • Do not put personal data or secrets in a key.
  • Each API key has its own idempotency keys.
  • The API remembers a key for 24 hours.

Retrying with the same key

The order of the keys in the JSON body does not matter.

Which responses are replayed

send_outcome_unknown

The provider did not confirm the send or the call, so it may have gone out.
Do not retry with a new key until you know what happened. A new key sends the message or places the call again.
Check the result first: Use a new key only after you confirm that nothing went out.

When the key cannot be checked

If the API cannot check the key, POST /v1/calls does not place the call and returns 502 provider_unavailable. Retry with the same key. The other operations process the request without idempotency protection.