Skip to main content
GET
/
account
/
gitlab
/
repository
/
branch
Get gitlab branches of the specified repository
curl --request GET \
  --url https://api.qovery.com/account/gitlab/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"

Query Parameters

name
string

The name of the repository to retrieve the branches

Response

Get gitlab repository branches

results
object[]