GET
/repos/{owner}/{repo}/git/tags/{tag_sha}Get a Git tag
Retrieves metadata for a Git tag in a repository, including its target object and signature-verification result. Use tag_sha to identify the tag and inspect verification.reason to understand why GitHub considers its signature verified or unverified.
ownerstringrequired
The account that owns the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
tag_shastringrequired
The SHA of the Git tag to retrieve.
200Returns the Git tag object, including its SHA, URL, tag name, message, tagger, target object, and signature-verification details.
node_idstringrequired
tagstringrequired
Name of the tag
shastringrequired
urlstringrequired
URL for the tag
messagestringrequired
Message describing the purpose of the tag
taggerobjectrequired
objectobjectrequired
verificationobjectoptional
404Returned when the requested tag or repository is not found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
409Returned when a conflict occurs while retrieving the tag.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 404 is returned when the tag_sha path parameter does not identify a tag in the repository specified by the owner and repo path parameters. A 409 indicates a conflict retrieving the tag.