---
title: "Get a variable set"
method: GET
path: "/v1/workspaces/{workspaceId}/variable-sets/{variableSetId}"
tags: ["Variable Sets"]
---

# Get a variable set

`GET /v1/workspaces/{workspaceId}/variable-sets/{variableSetId}`

Gets a variable set by ID.

## Path parameters

- `workspaceId` string, required
- `variableSetId` string, required

## Response `200`

OK response

- VariableSetWithVariables
  - `createdAt` string, date-time, required
  - `description` string, required
  - `id` string, uuid, required
  - `name` string, required
  - `priority` integer, required
  - `selector` string, required — A CEL expression to select which release targets this variable set applies to
  - `updatedAt` string, date-time, required
  - `variables` VariableSetVariable[], required
    - `key` string, required
    - `value` union, required
      - union
        - boolean
        - number
        - integer
        - string
        - ObjectValue
          - `object` object, required
        - true
      - ReferenceValue
        - `path` string[], required
        - `reference` string, required
      - SensitiveValue
        - `valueHash` string, required

## Other responses

- `400` — Invalid request
- `404` — Resource not found

## Changes

- **2026-04-06** `a509862da6ff` — 1 info
  - endpoint added
- **2026-02-19** `e61389fc98ac` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api/changes/v1/workspaces/:workspaceId/variable-sets/:variableSetId/get.md)

---

[API](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api.md) · [All operations](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ctrlplanedev/ctrlplane-api/revisions/156e0d264995/schema)
