---
title: Get Branch List By ProjectID
slug: suite-documentation/get-branch-list-by-projectid
docTags: 
createdAt: 2026-01-13T11:02:09.681Z
---

Retrieves the list of branches for a specific project. The user must have the necessary permissions to access this endpoint.

***

### Endpoint Information

- **URL**: `https://testinium.io/Testinium.RestApi/api/vcs/{projectId}/branches`
- **Method**: `GET`
- **Authentication**: Required (`Bearer Token`)

***

### Path Parameters

| Parameter   | Type     | Required | Description                                         |
| ----------- | -------- | -------- | --------------------------------------------------- |
| `projectId` | `String` | Yes      | The unique ID of the project to fetch branches for. |

***

### Response

```json
[
  "master"
]
```

### Response Fields

| Field        | Type    | Description                                         |
| ------------ | ------- | --------------------------------------------------- |
| `branchList` | `Array` | A list of branch names associated with the project. |

***

### Error Codes

| HTTP Code | Error Message       | Description                                        |
| --------- | ------------------- | -------------------------------------------------- |
| `400`     | `INVALID_REQUEST`   | The request was malformed or contained errors.     |
| `404`     | `PROJECT_NOT_FOUND` | No project was found for the specified project ID. |
| `404`     | `EMPTY_BRANCH`      | No branches were found for the specified project.  |

***

### Example Request

```bash
curl --location --request GET "https://testinium.io/Testinium.RestApi/api/vcs/{projectId}/branches" \
--header 'Authorization: Bearer <your_access_token>'
```

