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

## Query parameters

- `after` string, nullable
- `first` integer, nullable

## Response `200`

- BranchesListResponse
  - `data` BranchResponse[], required — Deprecated: use `items` instead. Kept for backward compatibility.
    - `id` integer, required
    - `isStagingEnvironmentEnabled` boolean, nullable
    - `lastHash` string, nullable
    - `name` string, required
    - `parentBranch` string, nullable
  - `items` BranchResponse[], required
    - `id` integer, required
    - `isStagingEnvironmentEnabled` boolean, nullable
    - `lastHash` string, nullable
    - `name` string, required
    - `parentBranch` string, nullable
  - `pageInfo` PageInfo
    - `endCursor` string, nullable
    - `hasNextPage` boolean, required
    - `hasPreviousPage` boolean, required
    - `startCursor` string, nullable

## Changes

> 9 revisions in range; 1 could not be searched.

- **2026-08-17** `29d481391a25` — 1 info
  - added the optional property `data/items/isStagingEnvironmentEnabled` to the response with the `200` status
- **2026-07-31** `a0c6b1d2ac96` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/changes/build/api/v1/deployments/:deploymentId/branches/get.md)

---

[API](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/97e151460143/schema)
