api-designbackend
Make duplicate create requests safe
Anonymous
For an endpoint that creates a resource, accept an idempotency key and store it with the operation's status and response. Enforce uniqueness atomically so concurrent requests with the same key don't both run the action. Scope keys to the caller and operation, and reject reuse with a different payload.
0