---
title: "GET /repos/{repo_id}/branches"
method: GET
path: "/repos/{repo_id}/branches"
tags: ["Repository Branch Manipulation"]
---

# GET /repos/{repo_id}/branches

`GET /repos/{repo_id}/branches`

Get a list of all branches in the repo.

## Response `200`

Success

- object
  - `object` 'Branch', required
  - `items` Branch[], required
    - `commit_id` string, required
    - `branch_name` string, required
    - `branch_description` string
    - `branch_id` string, required — Branch identifier in Diversion
    - `author` User, required — User details
      - `image` string — URL of the user image. If updating the image, could be a base64 encoded image.
      - `email` string, email
      - `full_name` string
      - `id` string, required
      - `name` string
      - `tier` 'EDUCATION' | 'INDIE' | 'PROFESSIONAL' | 'ENTERPRISE' | 'UNKNOWN' — The tier of the user
    - `time` number, required — Creation time

## Other responses

- `default` — An error occurred

---

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