---
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 fresh queue check ran; the pull request was merged trusting its own green CI because the base commits it was missing did not affect its scopes).
        - `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

---

[API](https://skmtc.net/mergify/apis/mergify-api.md) · [All operations](https://skmtc.net/mergify/apis/mergify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mergify/mergify-api/revisions/ae394a06c465/schema)
