---
title: "List variables"
method: GET
path: "/api/variables"
tags: ["Variables"]
---

# List variables

`GET /api/variables`

List all project variables for the current project. Secret values are redacted in the response. File-type variables include metadata such as type, fileName, fileSize, and mimeType.

## Response `200`

List of variables

- Variable[]
  - `id` string, uuid
  - `projectId` string, uuid
  - `key` string
  - `type` 'variable' | 'secret' | 'file' — Variable type. File variables expose metadata in API responses; file contents are not returned.
  - `value` string — Plaintext for regular variables, redacted for secrets, and empty for file variables
  - `isSecret` boolean
  - `description` string, nullable
  - `fileName` string, nullable
  - `fileSize` integer, nullable
  - `mimeType` string, nullable
  - `createdAt` string, date-time
  - `updatedAt` string, date-time, nullable

## Other responses

- `401` — Authentication required or token invalid

## Changes

- **2026-07-17** `81782deccf0e` — 6 info
  - added the optional property `items/fileName` to the response with the `200` status
  - added the optional property `items/fileSize` to the response with the `200` status
  - added the optional property `items/mimeType` to the response with the `200` status
  - added the optional property `items/projectId` to the response with the `200` status
  - …2 more
- **2026-02-08** `78bbac89339b` — 6 warning
  - removed the optional property `items/fileName` from the response with the `200` status
  - removed the optional property `items/fileSize` from the response with the `200` status
  - removed the optional property `items/mimeType` from the response with the `200` status
  - removed the optional property `items/projectId` from the response with the `200` status
  - …2 more

[Change history](https://skmtc.dev/supercheck-io/apis/supercheck-api/changes/api/variables/get.md)

---

[API](https://skmtc.dev/supercheck-io/apis/supercheck-api.md) · [All operations](https://skmtc.dev/supercheck-io/apis/supercheck-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supercheck-io/supercheck-api/revisions/81782deccf0e/schema)
