List repository branches
Returns a repository’s branches, read from GitHub, once the installation is checked to still have access to the repository.
/integration/github/installations/{installation_id}/repositories/{repository_id}/branchesAuthorizationBearer token (JWT) · headerrequiredJWT token passed in the Authorization header using the Bearer <token> format.
installation_iduuidrequiredKapten UUID of the GitHub installation binding.
repository_idstringrequiredImmutable GitHub repository ID encoded as a decimal string.
pageintegerOne-based GitHub page number.
per_pageintegerNumber of GitHub records returned per page.
Live GitHub branches retrieved
recordsgithub_branch[]requiredShow propertiesHide properties
github_branchnamestringrequiredhead_shastringrequiredprotectedbooleanrequiredpageintegerrequiredper_pageintegerrequirednext_pageinteger | nullInstallation or repository is inactive or inaccessible
codeinteger<int32>requiredmessagestringrequiredreasonstringOptional stable machine-readable reason for programmatic error handling
GitHub is temporarily unavailable
codeinteger<int32>requiredmessagestringrequiredreasonstringOptional stable machine-readable reason for programmatic error handling
Error
codeinteger<int32>requiredmessagestringrequiredreasonstringOptional stable machine-readable reason for programmatic error handling