Skip to main content
A network error can leave you unsure whether a request worked. Idempotency keys let you retry without issuing a second pass or applying an update twice.

Send a key

Every POST, PATCH and DELETE request needs an Idempotency-Key header. Use a new random value, such as a UUID, for each distinct operation, and reuse it only when you retry that same operation.
A request without one is rejected with 400 and the code missing_idempotency_key. GET requests don’t need the header.

How retries behave

Keys are kept for 7 days. Each key applies to one endpoint, so the same value sent to two different paths counts as two keys.