---
title: "Get Branch"
method: GET
path: "/api/v4/{workspace-slug}/branches/{branch-public-id}"
---

# Get Branch

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

## Request

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

Get Branch returns information about a chosen Branch.

## Path parameters

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

## Query parameters

- `fields` string

## Response `200`

Resource

- BranchEntityWrapper
  - `$schema` string, required: The URI for the json-schema for this response.
  - `entity` Branch, required: The entity for this response.
    - `created_at` string, date-time: The time/date the Branch was created.
    - `deleted` boolean: Boolean indicating whether the Branch has been deleted.
    - `entity_type` 'branch': The type of this entity.
    - `external_url` string: The URL of the Branch in the VCS provider.
    - `id` integer: The unique ID of the Branch.
    - `name` string: The name of the Branch.
    - `pull_requests` NestedPullRequestSlimList: A list of Pull/Merge Requests attached to the Story.
      - `current_items` integer, required
      - `entities` PullRequestSlim[], required
        - `entity_type` 'pull-request:slim', required: The type of this entity.
        - `id` integer, required: The unique ID of the Pull Request.
        - `name` string, required: The name of the Pull Request.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `list_url` string, required
      - `total_items` integer, required
    - `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
    - `updated_at` string, date-time: The time/date the Branch was last updated.
    - `uri` string: A resolvable URI for the entity that will return the full representation.

## 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)
