List GitHub repository branches available for a Git Sync installation
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
installationIdstringRequired
Identifier of the installation
accountNamestringRequired
repositoryNamestringRequired
Responses
200
GitHub branches available for the selected repository
application/json
401
Unauthorized
application/json
404
Not Found
application/json
get/git/installations/{installationId}/github/repos/{accountName}/{repositoryName}/branches
GET /v1/git/installations/{installationId}/github/repos/{accountName}/{repositoryName}/branches HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"name": "text",
"ref": "text"
}
]
}Last updated
Was this helpful?