API Reference/Git
Get a branch reference
Get a reference to a branch in the Git repository. Returns the ref name and SHA of the branch.
Path Parameters
repoRequiredstringThe repository id
Format:
"uuid"branchRequiredstringThe branch's name
Response Body
200
Branch reference object
nameRequiredstringThe name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")
shaRequiredstringThe SHA-1 hash of the Git object this reference points to
403
Forbidden
messageRequiredstring500
Internal server error
messageRequiredstringBranch reference object