---
title: "List all pipeline variables"
method: GET
path: "/api/v4/projects/{id}/pipelines/{pipeline_id}/variables"
tags: ["pipelines"]
---

# List all pipeline variables

`GET /api/v4/projects/{id}/pipelines/{pipeline_id}/variables`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/pipelines/{pipeline_id}/variables`
- Auth: none declared

Lists all pipeline variables for a specified pipeline.

## Path parameters

- `id` string, required
- `pipeline_id` integer, required

## Response `200`

List all pipeline variables

- APIEntitiesCiVariable[]
  - `variable_type` string, required
  - `key` string, required
  - `value` string, required
  - `hidden` boolean
  - `protected` boolean
  - `masked` boolean
  - `raw` boolean
  - `environment_scope` string
  - `description` string

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
