Skip to main content
GET
/
combined-data
/
git-api
/
branches
/
forRepo
/
:repoDataId
Get Repository Branches
curl --request GET \
  --url https://www.api.baselink.tech/combined-data/git-api/branches/forRepo/:repoDataId \
  --header 'bearer: <api-key>'
{
  "branches": [
    {}
  ],
  "branches[].name": "<string>",
  "branches[].sha": "<string>",
  "branches[].isDefault": true,
  "branches[].isProtected": true,
  "branches[].lastCommit": "<string>"
}
Retrieve branch data for a specific repository.
branches
array
Array of branch data objects for the repository.
branches[].name
string
The name of the branch.
branches[].sha
string
The SHA hash of the latest commit on the branch.
branches[].isDefault
boolean
Whether this is the default branch.
branches[].isProtected
boolean
Whether this branch is protected.
branches[].lastCommit
string
The timestamp of the last commit on the branch.