Retrieves version information for the GitLab instance

GET /version

This feature was introduced in GitLab 8.13 and deprecated in 15.5. We recommend you instead use the Metadata API.

Responses

  • 200 application/json

    Retrieves version information for the GitLab instance

    Hide response attributes Show response attributes object
    • version string
    • revision string
    • kas object
      Hide kas attributes Show kas attributes object
      • enabled boolean
      • externalUrl string
      • version string
    • enterprise boolean
  • 401

    Unauthorized

GET /version
curl \
 --request GET 'https://www.gitlab.com/api/v4/version' \
 --header "Private-Token: $API_KEY"
Response examples (200)
{
  "version": "15.2-pre",
  "revision": "c401a659d0c",
  "kas": {
    "enabled": true,
    "externalUrl": "grpc://gitlab.example.com:8150",
    "version": "15.0.0"
  },
  "enterprise": true
}