Integrations /
List branches
Gets a list of branches for the repo
Required permission
Account > Git > General > Read
Path parameters
vcsService
string requiredVersion control provider of the repositoryrepositoryOwner
string requiredName of the owner of the repositoryrepositoryName
string requiredName of the repository
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.per_page
integerThe number of results to display per request. Maximum of 100 results per page.min1max100page
integerThe page number to access.min1cursor
stringThe cursor returned from the previous page of results, used to request the next page.min length24max length24vcs_link_id
stringIf provided, uses the given VCS link to access the repository's data.min length24max length24pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/integrations/vcs/repos/{vcsService}/{repositoryOwner}/{repositoryName}/branches
Example response
200 OK
The list of branches.
JSON
{
"data": {
"per_page": 50,
"page": 1
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}