---
title: "GET /github/docs-project/{uid}/branches"
method: GET
path: "/github/docs-project/{uid}/branches"
tags: ["github"]
---

# GET /github/docs-project/{uid}/branches

`GET /github/docs-project/{uid}/branches`

List branches on the GitHub repo backing a `provider: github` DocsProject. Supports prefix search.

## Path parameters

- `uid` string, required

## Query parameters

- `query` string
- `page` number, required
- `perPage` number, required

## Response `200`

Default Response

- object
  - `branches` object[], required
    - `name` string, required
    - `isDefault` boolean, required
  - `hasMore` boolean, required

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

---

[API](https://skmtc.net/scalar/apis/core.md) · [All operations](https://skmtc.net/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalar/core/versions/f2eb95a82c72/schema)
