Skip to main content
POST
/
api
/
gitlab
/
projects
/
releases
/gitlab/projects/releases
curl --request POST \
  --url https://api.anysite.io/api/gitlab/projects/releases \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "project": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "tag": "<string>",
    "@type": "@gitlab_release",
    "name": "<string>",
    "description": "<string>",
    "created_at": "",
    "released_at": "",
    "upcoming_release": false,
    "author": {
      "id": 123,
      "@type": "@gitlab_release_author",
      "username": "",
      "name": "",
      "state": "",
      "image": "<string>",
      "web_url": ""
    },
    "commit": {
      "@type": "@gitlab_release_commit",
      "id": "",
      "short_id": "",
      "title": ""
    },
    "assets": {
      "@type": "@gitlab_release_assets",
      "count": 0,
      "sources": [],
      "links": []
    }
  }
]

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-runner"

"250833"

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

count
integer
required

Max number of releases to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

tag
string
required
@type
string
default:@gitlab_release
name
string | null
description
string | null
created_at
string
default:""
released_at
string
default:""
upcoming_release
boolean
default:false
author
GitlabReleaseAuthor · object
commit
GitlabReleaseCommit · object
assets
GitlabReleaseAssets · object