Sign in

Get project variable

documented

Retrieve a specific project variable by key.

GET /projects/:id/variables/:keyProjectsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://gitlab.com/api/v4/projects/{{$id}}/variables/{{$key}}?filter[environment_scope]={{environment_scope}}" \
  -X GET \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "PRIVATE-TOKEN: {{GITLAB_API_KEY}}" \
  -H "Accept: application/json"
Get project variable · GitLab · OpenIntegrations