Skip to main content
POST
/
api
/
gitlab
/
projects
/
tags
/gitlab/projects/tags
curl --request POST \
  --url https://api.anysite.io/api/gitlab/projects/tags \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "project": "<string>",
  "count": 2,
  "timeout": 300,
  "order_by": "updated",
  "sort": "desc"
}
'
[
  {
    "name": "<string>",
    "@type": "@gitlab_tag",
    "message": "<string>",
    "target": "",
    "created_at": "",
    "protected": false,
    "commit": {
      "@type": "@gitlab_tag_commit",
      "id": "",
      "short_id": "",
      "title": "",
      "created_at": "",
      "author_name": ""
    },
    "release": {
      "@type": "@gitlab_tag_release",
      "tag_name": "",
      "description": "<string>"
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
project
string
required

Project numeric id, 'namespace/project' path, or project URL

Minimum string length: 1
Examples:

"gitlab-org/gitlab"

"278964"

"https://gitlab.com/gitlab-org/gitlab"

count
integer
required

Max number of tags to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
order_by
enum<string>
default:updated

Field to order tags by

Available options:
name,
updated
sort
enum<string>
default:desc

Sort direction

Available options:
asc,
desc

Response

Successful Response

name
string
required
@type
string
default:@gitlab_tag
message
string | null
target
string
default:""
created_at
string
default:""
protected
boolean
default:false
commit
GitlabTagCommit · object
release
GitlabTagRelease · object