---
title: "List repository branches"
method: GET
path: "/api/v1/cache/{org}/{repo}/branches"
tags: ["Commits"]
---

# List repository branches

`GET /api/v1/cache/{org}/{repo}/branches`

## Path parameters

- `org` string, required
- `repo` string, required

## Query parameters

- `provider` 'gh' | 'et'

## Response `200`

Repository branches

- object
  - `branches` string[], required
  - `default_branch` string, required
  - `stored_default_branch` string, required
  - `from_cache` boolean, required

## Other responses

- `404` — Repository not found
- `429` — Rate limit exceeded
- `503` — Repository service unavailable

---

[API](https://skmtc.dev/entire/apis/entire-api.md) · [All operations](https://skmtc.dev/entire/apis/entire-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/entire/entire-api/revisions/c3d737ae064e/schema)
