Skip to main content
GET
/
v1
/
github
/
repos
/
{installationId}
/
branches
List branches for a repository
curl --request GET \
  --url https://api.suprlogs.com/v1/github/repos/{installationId}/branches \
  --header 'Authorization: Bearer <token>'
{
  "branches": [
    {}
  ],
  "defaultBranch": "<string>"
}

Authorizations

Authorization
string
header
required

Send API key as Authorization: Bearer .

Path Parameters

installationId
string<uuid>
required

Query Parameters

owner
string
required
repo
string
required

Response

Branches and default branch.

branches
object[]
defaultBranch
string