LogoFreestyle
API ReferenceGit

Get repository information

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

GET
/git/v1/repo/{repo}

Path Parameters

repo*string

The repository id

Response Body

application/json

curl -X GET "https://api.freestyle.sh/git/v1/repo/string"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "my-repo",
  "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
  "visibility": "public",
  "defaultBranch": "string"
}
Empty
Empty
Empty
Empty

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.