Skip to content

Docs: a retry with the same idempotency key does not repeat an operation - #64

Merged
farhadhf merged 2 commits into
mainfrom
update/idempotency-texts
Nov 23, 2026
Merged

farhadhf merged 2 commits into
mainfrom
update/idempotency-texts

Conversation

@farhadhf

Copy link
Copy Markdown
Contributor

Summary

A request with an idempotency key does its operation at most one time while the key lives. The texts now say so. Merge after the API release.

 api-reference/idempotency
-  notice that a retry can repeat an operation
+  a retry with the same key is safe
 23 guides, snippets, errors, send-api pages, test-campaign
-  one-line copies of the notice
+  after a 503, send again with the same key
 changelog: one entry
 openapi spec: copy of the server spec

Evidence

  • Before: the idempotency page warns about duplicates.
    After: scripts/docs_lint.py passes; the spec copy is identical to the server spec.

Merge Danger

Door: two-way

Blast Radius: docs

The idempotency page warned that a server error, an interrupted request or
an expired record could let an operation run a second time, and guides and
snippets repeated that in one line. A request with a key does its operation
at most one time while the key lives, so the warning and its copies are
removed. The pages give the second 503 case of a send (the result is not
known yet) and the Test Campaign answer after an unfinished run, and the
spec copy follows the server spec.
The 5 minutes of API key creation are an exception that the page explains below. In the first paragraph they read as a second general rule.
@farhadhf
farhadhf marked this pull request as ready for review November 23, 2026 09:23
@farhadhf
farhadhf merged commit 75c61a4 into main Nov 23, 2026
2 checks passed
@farhadhf
farhadhf deleted the update/idempotency-texts branch November 23, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant