---
title: "Get variable for a workspace"
method: GET
path: "/workspaces/{workspace}/pipelines-config/variables/{variable_uuid}"
tags: ["Pipelines"]
---

# Get variable for a workspace

`GET /workspaces/{workspace}/pipelines-config/variables/{variable_uuid}`

Retrieve a workspace level variable.

## Path parameters

- `workspace` string, required
- `variable_uuid` string, required

## Response `200`

The variable.

- PipelineVariable — A Pipelines variable.
  - `type` string, required
  - `uuid` string — The UUID identifying the variable.
  - `key` string — The unique name of the variable.
  - `value` string — The value of the variable. If the variable is secured, this will be empty.
  - `secured` boolean — If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.

## Other responses

- `404` — The workspace or variable with the given UUID was not found.

---

[API](https://skmtc.net/bitbucket/apis/bitbucket-api.md) · [All operations](https://skmtc.net/bitbucket/apis/bitbucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitbucket/bitbucket-api/versions/7e9be973015d/schema)
