GET
/admin/ci/variables/{key}
curl \
--request GET 'https://www.gitlab.com/api/v4/admin/ci/variables/{key}' \
--header "Private-Token: $API_KEY"
Response examples (200)
{
"variable_type": "env_var",
"key": "TEST_VARIABLE_1",
"value": "TEST_1",
"protected": true,
"masked": true,
"raw": true,
"environment_scope": "*"
}