Skip to content

Idempotency key was used with a different request

What the idempotency_key_reused error from the Perafly API means and what to do about it.

On this page
Code
idempotency_key_reused
HTTP status
422
Group
Retries

What it means

The same Idempotency-Key was sent with a different body within 24 hours.

What to do

Generate a new key for each new request; reuse a key only to retry the identical request.

Read more: API reference

Example response

This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.

{
  "type": "https://perafly.com/docs/errors/idempotency_key_reused",
  "title": "Idempotency key was used with a different request",
  "status": 422,
  "code": "idempotency_key_reused",
  "instance": "/v1/…",
  "requestId": "req_…"
}

All error codes