---
title: "List repository branches"
method: GET
path: "/v1/repositories/{id}/branches"
tags: ["Repositories"]
---

# List repository branches

`GET /v1/repositories/{id}/branches`

## Request

- Base URL: `https://api.replicas.dev`
- URL: `https://api.replicas.dev/v1/repositories/{id}/branches`
- Auth: HTTP bearer

Returns up to 100 branches. Use `q` to search by prefix.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `q` string

## Headers

- `X-Replicas-Api-Version` '2026-10-07'

## Response `200`

Repository branches

- ListRepositoryBranchesResponse
  - `branches` string[], required: Up to 100 unique branch names matching the request.

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `404`: Resource not found
- `409`: Conflict - Resource already exists or operation conflicts with current state
- `502`: Bad gateway - The workspace is unreachable or returned an invalid response

---

[API](https://skmtc.dev/replicas/apis/replicas-api.md) - [All operations](https://skmtc.dev/replicas/apis/replicas-api/llms.txt) - [OpenAPI document](https://skmtc.dev/replicas/apis/replicas-api/revisions/2703ac1c9cb7?raw)
