Header

View all available branches via API

This method allows you to view all available branches in the connected repository.

URL

/projects/<project>/repository/branches

Replace <project> with the permalink 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

{
  "develop":"aa4bd4a6ddff571cd86ca6ede658bd82610d87a8",
  "master":"baa7690059283c6e2e3d21fd0149f12b318175dd"
}
Tree

Proudly powered by Katapult. Running on 100% renewable energy.