---
title: "List Git Branches"
method: GET
path: "/v0/sites/{site_id}/code-tips"
tags: ["sites"]
---

# List Git Branches

`GET /v0/sites/{site_id}/code-tips`

Retrieves the list of Git branches for a site.
Returns a map where keys are branch names and values are commit SHAs.

## Path parameters

- `site_id` string, required

## Response `200`

- BranchListResponse — This is a map where keys are branch names and values are commit SHAs.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/pantheon/apis/pantheon-public-api-service.md) · [All operations](https://skmtc.net/pantheon/apis/pantheon-public-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pantheon/pantheon-public-api-service/revisions/94758829689e/schema)
