The RevDesk v1 API supports idempotency keys on everyDocumentation Index
Fetch the complete documentation index at: https://docs.revdesk.com/llms.txt
Use this file to discover all available pages before exploring further.
POST, PUT, PATCH, and DELETE endpoint. Set the Idempotency-Key header to a unique value (a UUID is recommended) on your first request; retry the same request with the same header and we’ll return the original response.
How it works
- First request with a key: we run the handler and persist the response under the key.
- Repeat with the same key and same body: we replay the saved response verbatim, including status code. The replay carries an
Idempotency-Replay: trueresponse header so you can tell. - Repeat with the same key but a different body: we return
409 idempotency_conflictwith the original key’s request id infields.conflicts_with.
TTL
Idempotency records live for 24 hours after the first successful response. After the window, reusing the key is a fresh request.Semantics
- Do use a new key for each new logical operation — reusing keys across different calls is an easy way to accidentally drop traffic.
- Do not rely on idempotency across key rotations — the key is scoped to the API key it was submitted under.
- Do not assume idempotency for cross-process transactions (e.g. a call + a Stripe charge). Idempotency only protects the RevDesk side.
When to set one
- Retrying a request after a network timeout — critical.
- Background jobs that might re-run after a worker crash — critical.
- Interactive UIs with a double-click-vulnerable button — nice to have.