This method allows you to view all available branches in the connected repository.

**Tip**: You can explore and test this endpoint interactively using our [OpenAPI documentation](https://api.deployhq.com/docs).

## URL

```
/projects/<project>/repository/branches
```

Replace `<project>` with either the `permalink` or `identifier` of the project.

## HTTP Method

```
GET
```

## Supported Parameters

None

## Example cURL Request

```
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
https://test.deployhq.com/projects/project/repository/branches
```

## Example Response

```json
{
  "develop":"aa4bd4a6ddff571cd86ca6ede658bd82610d87a8",
  "master":"baa7690059283c6e2e3d21fd0149f12b318175dd"
}
```