---
title: "List Branch Pull Requests"
method: GET
path: "/api/v4/{workspace-slug}/branches/{branch-public-id}/pull-requests"
---

# List Branch Pull Requests

`GET /api/v4/{workspace-slug}/branches/{branch-public-id}/pull-requests`

## Request

- Base URL: `https://api.app.shortcut.com`
- URL: `https://api.app.shortcut.com/api/v4/{workspace-slug}/branches/{branch-public-id}/pull-requests`
- Auth: HTTP bearer

List Branch Pull Requests returns a paginated list of all Pull Requests associated with a Branch in the Workspace.

## Path parameters

- `workspace-slug` string, required
- `branch-public-id` integer, required

## Query parameters

- `limit` integer
- `cursor` string
- `order_by` 'updated_at' | 'created_at'
- `order_dir` 'desc' | 'asc'
- `filter` 'exclude_closed' | 'include_closed'
- `fields` string

## Response `200`

Resource

- BranchPullRequestEntityListWrapper
  - `$schema` string, required: The URI for the json-schema for this response.
  - `current_items` integer, required: The number of items on the current page.
  - `current_page` integer, required: The number of the current page.
  - `entities` PullRequest[], required: The entities for this page.
    - `branch` BranchSlim
      - `entity_type` 'branch:slim', required: The type of this entity.
      - `id` integer, required: The unique ID of the Branch.
      - `name` string, required: The name of the Branch.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `closed` boolean: True/False boolean indicating whether the VCS Pull Request has been closed.
    - `created_at` string, date-time: The time/date the Pull Request was created.
    - `draft` boolean: True/False boolean indicating whether the Pull Request is in draft state.
    - `entity_type` 'pull-request': The type of this entity.
    - `external_id` string: The Pull Request's id in the VCS provider.
    - `external_url` string: The URL for the Pull Request in the VCS provider.
    - `id` integer: The unique ID of the Pull Request.
    - `repository` RepositorySlim: The Repository that contains the Commit.
      - `entity_type` 'repository:slim', required: The type of this entity.
      - `id` integer, required: The unique ID of the Repository.
      - `name` string, required: The name of the Repository.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `stories` NestedStorySlimList: A list of Stories associated with this Project.
      - `current_items` integer, required
      - `entities` StorySlim[], required
        - `app_url` string, required: The Shortcut application url for the Story.
        - `entity_type` 'story:slim', required: The type of this entity.
        - `id` integer, required: The unique ID of the Story.
        - `name` string, required: The name of the Story.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `list_url` string, required
      - `total_items` integer, required
    - `target_branch` BranchSlim
      - `entity_type` 'branch:slim', required: The type of this entity.
      - `id` integer, required: The unique ID of the Branch.
      - `name` string, required: The name of the Branch.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `title` string: The title of the Pull Request.
    - `updated_at` string, date-time: The time/date the Pull Request was last updated.
    - `uri` string: A resolvable URI for the entity that will return the full representation.
  - `total_items` integer, required: The number of total items across all pages.
  - `total_pages` integer, required: The total number of pages.
  - `next_page_url` string: A URL to get the next page. Will be absent on the last page.

## Other responses

- `400`: Schema mismatch
- `404`: Resource does not exist
- `422`: Unprocessable

---

[API](https://skmtc.dev/shortcut-com/apis/shortcut-api.md) - [All operations](https://skmtc.dev/shortcut-com/apis/shortcut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shortcut-com/apis/shortcut-api/revisions/bf2d8439832f?raw)
