The GitHub asynchronous merge API is now generally available. It is the recommended way to merge a pull request programmatically, add it to a queue or process a stack of changes.

The short answer

QuestionAnswer
Why asynchronous?The request returns an ID instead of waiting for a complex merge to complete.
How is progress checked?Use a GET request with the returned ID.
What is unique about it?It is GitHub’s only merge API with stacked pull request support.

A protocol suited to busy repositories

A merge may wait for checks, a queue or updates across branches. Holding one HTTP request open throughout creates timeouts and ambiguous retries. The new model accepts intent with PUT, returns an ID and lets automation inspect the outcome separately.

Pull request stacks become automatable

Teams that split work across dependent branches can request a stack merge without rebuilding the behavior around older GraphQL mutations. They still need to preserve order, validate each base and decide what happens when an intermediate change fails.

Polling should remain disciplined

Clients should not query status continuously. Progressive delay, a maximum duration and durable request-ID storage reduce load and allow recovery after restarts. Final states should become actionable messages rather than one generic failure.

Rule bypass deserves a barrier

The API can bypass rules when the caller has permission. Keep that capability outside the normal path, audit it and reserve it for documented cases. Merge automation should not turn administrative privilege into a silent shortcut around branch protections.