LogoFreestyle
API Reference/Git

Get a tag object

Get a tag from the Git database.

GET/git/v1/repo/{repo}/git/tags/{hash}

Path Parameters

repoRequiredstring

The repository id

Format: "uuid"
hashRequiredstring

The object's hash

Response Body

200

Tag retrieved successfully

nameRequiredstring

The tag name

taggerobject
messagestring | null

The tag message

targetRequiredobject

The object this tag points to

shaRequiredstring

The tag's hash ID

400

Invalid request

messageRequiredstring

403

Forbidden

messageRequiredstring

404

Tag not found

messageRequiredstring

500

Internal server error

messageRequiredstring
curl -X GET "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/git/tags/<string>"

Tag retrieved successfully

{
  "name": "string",
  "tagger": {},
  "message": "string",
  "target": {
    "sha": "string"
  },
  "sha": "string"
}