---
title: "Retrive all branches of project"
method: GET
path: "/projects/{projectId}/branches"
tags: ["projects"]
---

# Retrive all branches of project

`GET /projects/{projectId}/branches`

## Request

- Base URL: `https://pmp-demo.privateplatform.mendix.com/projectservice/v2`
- URL: `https://pmp-demo.privateplatform.mendix.com/projectservice/v2/projects/{projectId}/branches`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Retrive all branches of the project with project Id

## Path parameters

- `projectId` string, required

## Query parameters

- `cursor` integer
- `limit` integer

## Response `200`

Project branch list

- object[]
  - `branchName` string: Project branch name.
  - `latestCommit` string: The latest commit on project branch.

## Other responses

- `400`: Invalid input parameter or request body
- `401`: Authentication information missing or invalid
- `403`: No permission for this operation
- `404`: Resource not found

---

[API](https://skmtc.dev/mendix/apis/project-service-v2.md) - [All operations](https://skmtc.dev/mendix/apis/project-service-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/mendix/apis/project-service-v2/revisions/85d493a478d2?raw)
