LogoFreestyle
API ReferenceGit

Get a tag reference

Get a reference to a tag in the Git repository. Returns the ref name and SHA of the tag.

GET
/git/v1/repo/{repo}/git/refs/tags/{tag}

Path Parameters

repo*string

The repository id

Formatuuid
tag*string

The tag's name

Response Body

application/json

curl -X GET "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/git/refs/tags/string"
{
  "name": "string",
  "sha": "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.