---
title: "Retrieve all distinct branches for a given repo"
method: GET
path: "/branch"
---

# Retrieve all distinct branches for a given repo

`GET /branch`

Returns all branches for a given repo.

## Query parameters

- `repo_name` string, required

## Response `200`

An array of branches

- object
  - `branches` string[]

## Other responses

- `404` — Repo not found
- `500` — Internal server error

---

[API](https://skmtc.net/comfy-org/apis/comfy-api.md) · [All operations](https://skmtc.net/comfy-org/apis/comfy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comfy-org/comfy-api/versions/fb3c490f87ef/schema)
