---
title: "Get the current branch details"
method: GET
path: "/repos/{repo_id}/branches/{branch_id}"
tags: ["Repository Branch Manipulation"]
---

# Get the current branch details

`GET /repos/{repo_id}/branches/{branch_id}`

## Response `200`

Branch details returned

- Branch
  - `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/versions/38a18aba804b/schema)
