Idempotency-Key header with any POST, and sending the same request again with the same key gets the first answer instead of a second post.
- Any string up to 255 characters. A UUID per operation works well.
- Kept for 24 hours.
- Only successes are kept: after a failure, fix the request and send it again with the same key.
- A replayed answer carries the
Idempotent-Replayed: trueheader.
The CLI sends an
Idempotency-Key with every POST and retries once with it when a request fails without an answer.