Why use it
Retries after a timeout or ambiguous5xx are common. Without an idempotency key, the server may treat each retry as a new request — duplicate tasks, extra credits, or duplicate webhooks.
X-Idempotency-Key marks one logical submission. Under your API Key, the same path + key is accepted only once within the TTL (default 24 hours). Retry the same intent with the same key; start a new job with a new key.
Idempotency prevents duplicate submissions, not two different jobs.
What to send
Add the header on everyPOST request to the Open API (/openapi/v1/**):
- Non-empty after trim, max length 64
- Generate the key before the first attempt and keep it for safe retries
- Do not reuse a key for a different payload — you will get
409 Conflict
If the key was already used
- HTTP
409 Conflict - Header
Retry-After: 2 - Body:
code: 409,messagecontainsIdempotency key already used

