All error codes

idempotency_key_reused

HTTP 422 Idempotency-Key was already used for another request

What happened

This Idempotency-Key is already held by a different request in this project (for POST /v1/projects, which has no project yet - in this account). The key is bound to the method, path, query parameters, body and caller of its first use, so a changed body or query parameter makes it a different request - DELETE /v1/servers/{id} with a different release_ips included (query parameters are compared by value: false and 0 are the same, and a parameter sent with its default value equals leaving it out) - and so does another caller: the account owner and the team members share the project's keys, and a key one of them used is refused to the others even with the same body. This holds while the first request is still running too: idempotency_in_progress (409) is only for an exact repeat, or for the later of two requests that took an unused key at the same instant.

What to do

Send a new key for the new request. To receive the stored response of the original request, resend it exactly - the same body byte for byte, the same query parameters - with the token of the same person. Nothing was executed for this attempt.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/idempotency_key_reused",
    "title": "Idempotency-Key was already used for another request",
    "status": 422,
    "code": "idempotency_key_reused",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.