LogoFreestyle
API Reference/Git

Get repository default branch

Get the default branch name for a repository.

GET/git/v1/repo/{repo_id}/default-branch

Path Parameters

repo_idRequiredstring

The repository ID

Format: "uuid"

Response Body

200

Success

defaultBranchRequiredstring
curl -X GET "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/default-branch"

Success

{
  "defaultBranch": "string"
}