POST /contacts, POST /messages) accept an optional Idempotency-Key header so you can safely retry a request after a network error without performing the operation twice.
Using a key
Generate a unique key per logical operation (a UUID works well) and send it on the request. Keys can be up to 255 characters.Behavior
Keys are retained for 24 hours. After that, the same key is treated as new.
Handling conflicts
A409 response uses the standard error envelope. On idempotency_in_progress, wait briefly and retry the same request — the original will have completed and its response will be replayed..png)