Error: missing_idempotency_key
A mutating request was sent without an Idempotency-Key header.
missing_idempotency_key
missing_idempotency_keyHTTP status: 400
Every POST, PUT, PATCH, and DELETE request must include an Idempotency-Key header. The key was absent from this request.
Why this happens
- You are calling the API directly with
curlor a raw HTTP client and forgot to include the header. - A custom HTTP middleware in your stack strips or skips the header.
- You are using an older SDK version that predates idempotency-key enforcement.
What to do
- Add
Idempotency-Key: <uuid-v4>to every mutating request. Generate a new UUID v4 per logical operation. - If using an SDK, upgrade to the latest version — the SDK auto-mints a key per call.
- For raw
curlcalls, add-H "Idempotency-Key: $(uuidgen)". - For queued jobs, mint the key at enqueue time and attach it to the job payload so retries reuse the same key.
Example response
{
"type": "https://zyins.isaapi.com/errors/missing-idempotency-key",
"title": "Missing idempotency key",
"status": 400,
"detail": "Mutating requests require an Idempotency-Key header containing a UUID v4. Add the header and retry.",
"code": "missing_idempotency_key",
"advice_code": "add_idempotency_key",
"param": null,
"request_id": "req_01HZK2N5GQR9T8X4B6FJW3Y1AS"
}SDK exceptions
| Language | Exception class |
|---|---|
| TypeScript | IsaMissingIdempotencyKeyError |
| Python | IsaMissingIdempotencyKeyError |
| Go | *zyins.MissingIdempotencyKeyError |
| PHP | Isa\Sdk\Zyins\Exception\IsaMissingIdempotencyKeyException |
| C# | IsaMissingIdempotencyKeyException |
See also
Updated 2 days ago