---
title: "Get Repository Branches"
method: GET
path: "/api/user/repository/branches"
---

# Get Repository Branches

`GET /api/user/repository/branches`

Get branches for a repository.

## Query parameters

- `repository` string, required

## Response `200`

Successful Response

- Branch[]
  - `name` string, required
  - `commit_sha` string, required
  - `protected` boolean, required
  - `last_push_date` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/all-hands/apis/openhands.md) · [All operations](https://skmtc.dev/all-hands/apis/openhands/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/all-hands/openhands/revisions/4daa2bb4dbf1/schema)
