docs: clarify Idempotency-Key is only honored on audit log event creation#692
Merged
Merged
Conversation
…tion The WorkOS API only deduplicates requests carrying an Idempotency-Key on POST /audit_logs/events. The README previously implied the key was honored on arbitrary mutations (e.g. organization creation), which could lead callers to retry mutations expecting server-side deduplication that does not happen. Scope the examples and prose to the Audit Logs endpoint and call out the limitation explicitly.
Contributor
Contributor
Author
|
Assessed the rest of the README against the codebase per the Slack thread. Fixes pushed in the follow-up commit:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The WorkOS API only deduplicates requests carrying an
Idempotency-Keyheader onPOST /audit_logs/events(Create Audit Log Event). The README previously presented idempotency keys as a general capability on arbitrary mutations (e.g. organization creation), so a client that retried a mutation with the same key could still create a duplicate — as reported publicly by a user who retriedPOST /organizationsand got two organizations.Adds a callout under Per-Request Options scoping
idempotency_keytoaudit_logs.create_event.This README is synced to workos.com/docs SDK pages by the
sync-sdk-readmesworkflow, so the fix propagates to the public docs on the next sync.Part of a coordinated docs fix across workos-rust, workos-ruby, workos-python, workos-kotlin, workos-go, and workos-dotnet.
Test plan
Docs-only change; rendered the Markdown and verified the referenced SDK methods exist in this repo.