---
title: "List branches"
method: GET
path: "/api/v1/projects/{projectUuid}/git/branches"
tags: ["Git Files"]
---

# List branches

`GET /api/v1/projects/{projectUuid}/git/branches`

List branches for the connected repository

## Path parameters

- `projectUuid` string, required

## Response `200`

Success

- ApiGitBranchesResponse
  - `results` GitBranch[], required
    - `isProtected` boolean, required — TRUE if direct writes are blocked (GitHub protection OR project's configured branch)
    - `name` string, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.net/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/revisions/40c933755c9a/schema)
