---
title: "Get merge queues"
method: GET
path: "/repos/{owner}/{repository}/queues"
tags: ["queues"]
deprecated: true
---

# Get merge queues

`GET /repos/{owner}/{repository}/queues`

> **Deprecated.**

Get the list of pull requests queued in a merge queue of a repository

## Path parameters

- `owner` string, required — The owner of the repository
- `repository` string, required — The name of the repository

## Response `200`

Successful Response

- Queues
  - `queues` Queue[], required — The queues of the repository
    - `branch` Branch, required
      - `name` string, required — The name of the branch
    - `pull_requests` PullRequestQueued[], required — The pull requests in this queue
      - `number` integer, required — The number of the pull request
      - `position` integer, required — The position of the pull request in the queue. The first pull request in the queue is at position 0
      - `priority` integer, required — The priority of this pull request
      - `effective_priority` integer, required — The effective priority of this pull request
      - `priority_alias` string, required — The priority textual value of this pull request
      - `queue_rule` QueueRule, required
        - `name` string, required — The name of the queue rule
        - `config` object, required — The configuration of the queue rule
      - `queued_at` string, date-time, required — The timestamp when the pull requested has entered in the queue
      - `speculative_check_pull_request` MergifyEngineWebApiQueuesIndexSpeculativeCheckPullRequest, required
        - `in_place` boolean, required — Whether the pull request has been checked in-place
        - `number` integer, required — The number of the pull request used by the speculative check
        - `started_at` string, date-time, nullable, required — The timestamp when the checks have started for this pull request
        - `ended_at` string, date-time, nullable, required — The timestamp when the checks have ended for this pull request
        - `checks` QueueCheck[], required — The list of pull request checks
          - `name` string, required — Check name
          - `description` string, required — Check description
          - `url` string, nullable, required — Check detail url
          - `details_url` string, nullable — External integrator's direct URL (e.g. Jenkins build URL)
          - `state` 'failure' | 'error' | 'cancelled' | 'action_required' | 'timed_out' | 'pending' | 'neutral' | 'skipped' | 'stale' | 'success', required
          - `avatar_url` string, nullable, required — Check avatar_url
        - `evaluated_conditions` string, required — The queue rule conditions evaluation report
        - `state` 'failure' | 'error' | 'cancelled' | 'action_required' | 'timed_out' | 'pending' | 'neutral' | 'skipped' | 'stale' | 'success', required
      - `mergeability_check` BriefMergeabilityCheck, required
        - `check_type` 'in_place' | 'draft_pr' | 'trusted', required — The type of queue check: `in_place` (checks run on the pull request itself), `draft_pr` (checks run on a Mergify draft pull request), or `trusted` (no queue CI run is required: the merge relies on the pull request's own green CI, either because it already contains the base branch tip or because the base commits it is missing do not affect its scopes — the latter is Direct Merge, see https://docs.mergify.com/merge-queue/direct-merge).
        - `pull_request_number` integer, required — The number of the pull request used by the speculative check
        - `started_at` string, date-time, nullable, required — The timestamp when the checks have started for this pull request
        - `ended_at` string, date-time, nullable, required — The timestamp when the checks have ended for this pull request
        - `state` 'failure' | 'error' | 'cancelled' | 'action_required' | 'timed_out' | 'pending' | 'neutral' | 'skipped' | 'stale' | 'success', required
      - `estimated_time_of_merge` string, date-time, nullable, required — The estimated timestamp when this pull request will be merged
      - `partition_name` string, required — The name of the partition, if any, in which the pull request is queued

## Other responses

- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `422` — Unprocessable entity

## Changes

- **2026-08-28** `b3864dcc206a` — 1 info
  - the endpoint scheme security `MergifyTokenBearerAuth` was added to the API
- **2026-08-13** `29857c6146cf` — 2 info
  - the endpoint scheme security `AdminApplicationKey` was added to the API
  - the endpoint scheme security `ApplicationAuth` was removed from the API

[Change history](https://skmtc.dev/mergify/apis/mergify-api/changes/repos/:owner/:repository/queues/get.md)

---

[API](https://skmtc.dev/mergify/apis/mergify-api.md) · [All operations](https://skmtc.dev/mergify/apis/mergify-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mergify/apis/mergify-api/revisions/0414e6db380a?raw)
