---
title: "get github repository branches"
method: POST
path: "/api/v1/github-connector/repository/branches"
tags: ["api/v1/github-connector"]
---

# get github repository branches

`POST /api/v1/github-connector/repository/branches`

#### Controller: 

`github.com/raghavyuva/nixopus-api/internal/features/github-connector/controller.(*GithubConnectorController).GetGithubRepositoryBranches`

#### Middlewares:

- `github.com/go-fuego/fuego.defaultLogger.middleware`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func2`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func2`

---

## Headers

- `Accept` string

## Response `200`

OK

- ListBranchesResponse — ListBranchesResponse schema
  - `data` object[]
    - `commit` object
      - `sha` string
      - `url` string
    - `name` string
    - `protected` boolean
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

---

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