Idempotency-Key
in the request headers. The server saves the status code and body of the first request made with a given idempotency key.
Idempotency keys should be unique. We recommend using V4 UUIDs or another random string with enough entropy to avoid collisions. Keys can be up to 255 characters long.
422 Unprocessable Entity
error, indicating that the parameters conflict with the original request. For instance, a 409 Conflict
will be returned if a request conflicts with another concurrent operation, including a retry-after
header to suggest when the client should retry.
Results are saved only after the execution of an endpoint begins. If incoming parameters fail validation or the request conflicts with a concurrent request, the idempotent result is not saved, and you can retry these requests. In such cases, the server ensures that no unintended side effects occur.
We recommend implementing a retry strategy such as exponential backoff in the client to handle timeouts or transient failures.
POST
requests accept idempotency keys. Don’t send idempotency keys in GET
and DELETE
requests as these are inherently idempotent.