LogoFreestyle
API Reference/Git

Get a tag reference

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

GET/repos/{repo}/git/refs/tags/{*tag}

Path Parameters

repoRequiredstring

The repository id

Format: "uuid"
tagRequiredstring

The tag's name

Response Body

200

Branch reference object

nameRequiredstring

The name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")

shaRequiredstring

The SHA-1 hash of the Git object this reference points to

403

Forbidden

messageRequiredstring

500

Internal server error

messageRequiredstring
curl -X GET "https://api.freestyle.sh/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/git/refs/tags/{*tag}"

Branch reference object

{
  "name": "string",
  "sha": "string"
}