This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Send an idempotency key with POST and PATCH requests - #313
Closed
ryangjchandler wants to merge 1 commit into
Closed
ryangjchandler wants to merge 1 commit into
ryangjchandler wants to merge 1 commit into
Conversation
Laravel Cloud's API now accepts an Idempotency-Key header on POST and PATCH endpoints and replays the first successful response for a repeated key instead of doing the work twice. The key lives on the request, so sending the same request again reuses it. Amp-Thread-ID: https://ampcode.com/threads/T-a513dd7f-59e4-4e07-9182-e5e678b2cd13 Co-authored-by: Ryan Chandler <ryan@laravel.com>
ryangjchandler
marked this pull request as ready for review
November 26, 2026 16:11
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Laravel Cloud's API now accepts an
Idempotency-Keyheader onPOSTandPATCHendpoints. When it sees a key again within 24 hours, it returns the first successful response instead of repeating the work.Each request object gets one key and keeps it. This prevents nothing yet, because the CLI never resends a request. The protection takes effect once we add retries on timeouts and connection errors, or a way for callers to pass their own key.