conflict

This Idempotency-Key was already used with a different request.

Response

Every failure uses this envelope. credits_charged is 0. The message below is the default text for this code. Live messages can change, so branch on error.code.

HTTP 409Sample
{
  "ok": false,
  "error": {
    "code": "conflict",
    "message": "This Idempotency-Key was already used with a different request.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_0123456789abcdef01234567"
}

error.retryable is false. The same request fails the same way.

When it happens

  • The API raises this with the message this Idempotency-Key was already used with a different request.

What to do

  • The same Idempotency-Key with the same request returns the first answer again. A different request needs a new key. See batch and jobs.
  • Do not retry the different request with the old key.

The response header x-request-id matches request_id. The full list is on errors.