---
title: "List a deployment's branches"
method: GET
path: "/build/api/v1/deployments/{deploymentId}/branches"
tags: ["Data Model"]
---

# List a deployment's branches

`GET /build/api/v1/deployments/{deploymentId}/branches`

## Path parameters

- `deploymentId` integer, required

## Response `200`

- BranchesListResponse
  - `data` BranchResponse[], required
    - `id` integer, required
    - `lastHash` string, nullable
    - `name` string, required
    - `parentBranch` string, nullable

---

[API](https://skmtc.net/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.net/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/versions/a0c6b1d2ac96/schema)
