---
title: "Get PR details"
method: GET
path: "/api/v1alpha/watched_branches/{branch}/prs/{number}"
tags: ["PRs"]
---

# Get PR details

`GET /api/v1alpha/watched_branches/{branch}/prs/{number}`

Returns full details for a single PR. For active PRs (still open against this branch) includes merge eligibility and queue position. For historical PRs fetches from GitHub.

## Path parameters

- `branch` string, required
- `number` integer, required

## Response `200`

PR details retrieved successfully

- union
  - ActivePRDetail
    - `number` integer
    - `title` string
    - `author` string
    - `assignees` string[]
    - `reviewers` string[]
    - `source_branch_name` string
    - `build_state` string, nullable
    - `review_state` string, nullable
    - `labels` string[]
    - `out_of_date` boolean
    - `gh_statuses` object
    - `batch_id` integer, nullable
    - `review_approved` boolean
    - `checks_all_pass` boolean
    - `is_up_to_date` boolean
    - `blocking_labels` string[]
    - `is_mergeable` boolean
    - `prs_ahead_in_queue` object[]
      - `number` integer
      - `title` string
      - `is_merge_candidate` boolean
    - `is_merge_candidate` boolean
    - `blocking_deploy_batch_id` integer, nullable
    - `batch` BatchSummary, nullable
      - `id` integer
      - `state` string, nullable
      - `cost` number, nullable
      - `artifacts_uri` string
  - HistoricalPRDetail
    - `number` integer
    - `title` string
    - `labels` string[]
    - `merged` boolean, nullable
    - `merge_commit_sha` string, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Branch or PR not found

---

[API](https://skmtc.net/hail-is/apis/hail-ci-service.md) · [All operations](https://skmtc.net/hail-is/apis/hail-ci-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hail-is/hail-ci-service/revisions/37d6dddb7b5a/schema)
