---
title: API Version 2026-11-20
description: The operations API version 2026-11-20 no longer serves, what to call instead, and how to keep a caller on 2026-11-16.
---

API version `2026-11-20` no longer serves 25 operations that `2026-11-16`
deprecated. All but one have a replacement. Every other operation of the [API
Reference](/api) is served as in `2026-11-16`, which keeps serving those 25 for at least 12 months
after `2026-11-20` was released: see [How long a version is
served](/api/versions#how-long-a-version-is-served).

## Who gets it

A request gets `2026-11-20` when its `Mergify-Version` header names it. Naming
no version, a request made with one of an organization's application keys gets
it when the organization's oldest application key was created on or after 20
November 2026. Any other request gets `2026-11-16`. [Which version a request
gets](/api/versions#which-version-a-request-gets) has the details.

## Operations it no longer serves

At `2026-11-20`, a request to one of these operations is refused as if it did not
exist: `404`, or `405` when its path still serves another method. Every path is
under `https://api.mergify.com/v1`. Several replacements take other parameters
or return another shape than the operation they replace: check each one in the
[API Reference](/api).

### Merge Queue

- `GET /repos/{owner}/{repository}/queues` →
  `GET /repos/{owner}/{repository}/merge-queue/status`

- `GET /repos/{owner}/{repository}/queues/branches` →
  `GET /repos/{owner}/{repository}/stats/branches`, which needs the
  `merge_queue_statistics: read` permission instead of `merge_queue: read`

- `GET /repos/{owner}/{repository}/queues/configuration` → none: the queue
  rules' configuration is the repository's
  [`.mergify.yml`](/configuration/file-format), so read it from the repository

- `GET /repos/{owner}/{repository}/queue/pause` →
  `GET /repos/{owner}/{repository}/merge-queue/pause`

- `PUT /repos/{owner}/{repository}/queue/pause` →
  `PUT /repos/{owner}/{repository}/merge-queue/pause`

- `DELETE /repos/{owner}/{repository}/queue/pause` →
  `DELETE /repos/{owner}/{repository}/merge-queue/pause`

- `POST /repos/{owner}/{repository}/queue/pause/delete` →
  `DELETE /repos/{owner}/{repository}/merge-queue/pause`

### Merge Queue settings

- `GET /repos/{owner}/{repository}/merge-queue/settings` →
  `GET /orgs/{owner}/repositories/{repository}/merge-queue/settings`

- `PUT /repos/{owner}/{repository}/merge-queue/settings` →
  `PUT /orgs/{owner}/repositories/{repository}/merge-queue/settings`

- `DELETE /repos/{owner}/{repository}/merge-queue/settings` →
  `DELETE /orgs/{owner}/repositories/{repository}/merge-queue/settings`

- `GET /repos/{owner}/{repository}/merge-queue/settings/branches` →
  `GET /orgs/{owner}/repositories/{repository}/merge-queue/branch-patterns`

- `GET /repos/{owner}/{repository}/merge-queue/settings/branches/{branch}` →
  `GET /orgs/{owner}/repositories/{repository}/merge-queue/branch-patterns/{branch_pattern_name}/settings`

- `PUT /repos/{owner}/{repository}/merge-queue/settings/branches/{branch}` →
  `PUT /orgs/{owner}/repositories/{repository}/merge-queue/branch-patterns/{branch_pattern_name}/settings`

- `DELETE /repos/{owner}/{repository}/merge-queue/settings/branches/{branch}` →
  `DELETE /orgs/{owner}/repositories/{repository}/merge-queue/branch-patterns/{branch_pattern_name}/settings`

- `GET /repos/{owner}/{repository}/branches/{branch}/merge-queue/settings` →
  `GET /orgs/{owner}/repositories/{repository}/merge-queue/branches/{branch_name}/settings`

Some fields are renamed in the replacements: the list of base branch names and
patterns is `branch_patterns`, and in it `branch` is `branch_pattern` and
`is_pattern` is `glob`. In the settings a base branch uses, the `branch` of
each source is `branch_pattern`.

Except for the last one, these replacements are deprecated too, and
`2026-11-20` still serves them.

### Scheduled freezes and statistics

- `DELETE /repos/{owner}/{repository}/scheduled_freeze/{freeze_id}` →
  `POST /repos/{owner}/{repository}/scheduled_freeze/{freeze_id}/delete`

- `GET /repos/{owner}/{repository}/stats/merge_queue_checks_outcome` →
  `GET /repos/{owner}/{repository}/stats/queues_checks_outcome_count`, and
  `GET /repos/{owner}/{repository}/stats/ci_runs` for the CI runs

- `GET /repos/{owner}/{repository}/stats/time_to_merge` →
  `GET /repos/{owner}/{repository}/stats/total_queue_time`

### Scopes

- `PUT /repos/{owner}/{repository}/pulls/{number}/scopes` →
  `PUT /repos/{owner}/{repository}/commits/{sha}/scopes`, with the pull
  request's head SHA

- `POST /repos/{owner}/{repository}/pulls/{number}/scopes` →
  `PUT /repos/{owner}/{repository}/commits/{sha}/scopes`, with the pull
  request's head SHA

### Test quarantines

A quarantine is a test state whose `state` is `quarantined`:

- `GET /ci/{owner}/repositories/{repository}/quarantines` →
  `GET /ci/{owner}/repositories/{repository}/test-states`

- `POST /ci/{owner}/repositories/{repository}/quarantines` →
  `POST /ci/{owner}/repositories/{repository}/test-states`

- `GET /ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}` →
  `GET /ci/{owner}/repositories/{repository}/test-states/{test_state_id}`

- `PATCH /ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}` →
  `PATCH /ci/{owner}/repositories/{repository}/test-states/{test_state_id}`

- `DELETE /ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}` →
  `DELETE /ci/{owner}/repositories/{repository}/test-states/{test_state_id}`

## Keeping a caller on 2026-11-16

A caller that is not ready names `2026-11-16` in its `Mergify-Version` header.
It keeps the operations above, whatever the organization's version, until
`2026-11-16` stops being served; its responses carry a `Mergify-Version-Sunset`
header with that date once it is set.

```bash
curl -H "Authorization: Bearer <your-application-key>" \
     -H "Mergify-Version: 2026-11-16" \
     https://api.mergify.com/v1/repos/<owner>/<repository>/queue/pause
```
