LogoFreestyle
API Reference/Git

Get repository information

Retrieve information about a specific repository, including its ID, name, and default branch.

GET/git/v1/repo/{repo}

Path Parameters

repoRequiredstring

The repository id

Response Body

200

Repository information retrieved successfully

idRequiredstring
Format: "uuid"
namestring | null
accountIdRequiredstring
Format: "uuid"
visibilityRequiredstring
Value in: "public" | "private"
defaultBranchRequiredstring
curl -X GET "https://api.freestyle.sh/git/v1/repo/<string>"

Repository information retrieved successfully

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "my-repo",
  "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
  "visibility": "public",
  "defaultBranch": "string"
}

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.