Errors

idempotency_key_reused

422: Idempotency-Key used for another send.

Idempotency-Key used for another send. Answered with 422.

What it means

The Idempotency-Key was used on this Identity in the last 24 hours with another request body. A key stands for one mail, so it is refused rather than read as a retry of something else, and nothing was sent. The body is compared as the API reads it: another key order or an empty list left out is the same body.

What to do

For a new mail, use a fresh Idempotency-Key. For a retry of the first one, send exactly the body that was sent with this key.

The body

{
  "type": "https://tigby.eu/problems/idempotency_key_reused",
  "title": "Idempotency-Key used for another send",
  "status": 422,
  "detail": "…what was refused, naming this request's own values",
  "code": "idempotency_key_reused",
  "doc_url": "https://docs.tigby.eu/errors/idempotency_key_reused",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.