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
repo
RequiredstringThe repository id
Format:
"uuid"
tag
RequiredstringThe tag's name
Response Body
200
Branch reference object
name
RequiredstringThe name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")
sha
RequiredstringThe SHA-1 hash of the Git object this reference points to
403
Forbidden
message
Requiredstring500
Internal server error
message
RequiredstringBranch reference object