Skip to main content
GET
/
organization
/
{organizationId}
/
account
/
github
/
repository
/
branch
Get github branches of the specified repository
curl --request GET \
  --url https://api.qovery.com/organization/{organizationId}/account/github/repository/branch \
  --header 'Authorization: <api-key>'
{
  "results": [
    {
      "name": "main"
    }
  ]
}

Authorizations

Authorization
string
header
required

Token API are generated by Qovery to manage machine to machine interaction and do not have a TTL. Prefix your token with "Token ". Curl Example: curl https://console.qovery.com/organization -H "Authorization: Token $qovery_token"

Path Parameters

organizationId
string<uuid>
required

Organization ID

Query Parameters

name
string

The name of the repository where to retrieve the branches

gitTokenId
string<uuid>

The git token id that must be used for the application

Response

Get github repository branches

results
object[]