---
title: "Get pull request info"
method: GET
path: "/v1/git/worktrees/{id}/pr"
tags: ["git"]
---

# Get pull request info

`GET /v1/git/worktrees/{id}/pr`

Gets information about an existing pull request for a worktree branch

## Path parameters

- `id` string, required

## Response `200`

OK

- GithubComVanpeltCatnipInternalModelsPullRequestInfo — Information about an existing pull request for a worktree
  - `body` string — Body/description of the existing pull request (if exists)
  - `exists` boolean — Whether a pull request exists for this branch
  - `has_commits_ahead` boolean — Whether the branch has commits ahead of the base branch
  - `number` integer — Pull request number (if exists)
  - `title` string — Title of the existing pull request (if exists)
  - `url` string — URL to the pull request (if exists)

---

[API](https://skmtc.net/wandb/apis/catnip-container-api.md) · [All operations](https://skmtc.net/wandb/apis/catnip-container-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/catnip-container-api/versions/a075b0fa501a/schema)
