---
title: "Get Branch"
method: GET
path: "/api/v2/deployments/{deploymentId}/projects/{projectId}/branches/{branchId}"
tags: ["ProjectsService"]
---

# Get Branch

`GET /api/v2/deployments/{deploymentId}/projects/{projectId}/branches/{branchId}`

Get a branch by its ID.

## Path parameters

- `deploymentId` integer, required — Your deployment ID.
- `projectId` integer, required — The unique identifier for the project.
- `branchId` integer, required — The branch id

## Response `200`

OK

- ProtosProjectsV2GetBranchResponse
  - `branch` ProtosProjectsV2Branch
    - `id` integer — The unique identifier for the branch.
    - `name` string — The name of the branch.

---

[API](https://skmtc.dev/semgrep/apis/semgrep-web-app.md) · [All operations](https://skmtc.dev/semgrep/apis/semgrep-web-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/semgrep/semgrep-web-app/revisions/6483eeecd582/schema)
