Example header with idempotency key
When to use idempotency keys
Idempotency keys are supported on allPOST
calls to run a job.
How idempotency keys work in Deck
When a request with a unique idempotency key is received, Deck stores the result of that request, including the status code and body. If the same key is used again:- If the parameters match: Deck returns the original result, even if it failed (for example, with a
500
error). - If the parameters differ: Deck returns a
409 Conflict
error to prevent accidental misuse. - After 24 hours: idempotency keys can be safely reused.