---
title: "Get all branches for a project"
method: GET
path: "/insights/{project-slug}/branches"
tags: ["Insights"]
---

# Get all branches for a project

`GET /insights/{project-slug}/branches`

Get a list of all branches for a specified project. The list will only contain branches currently available within Insights. The maximum number of branches returned by this endpoint is 5,000.

## Path parameters

- `project-slug` string, required

## Query parameters

- `workflow-name` string

## Response `200`

A list of branches for a project

- object — Project branches response.
  - `org_id` unknown, required
  - `project_id` unknown, required
  - `branches` string[], required — A list of all the branches for a given project.

## Other responses

- `default` — Error response.

---

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