---
title: "Read Variable"
method: GET
path: "/api/variables/{id}"
tags: ["Variables"]
---

# Read Variable

`GET /api/variables/{id}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `id` string, uuid, required

## Headers

- `x-prefect-api-version` string

## Response `200`

Successful Response

- Variable: A PrefectBaseModel with an auto-generated UUID ID value and created / updated timestamps, intended for compatibility with our standard ORM models. The ID, created, and updated fields are reset on copy() and not included in equality comparisons.
  - `id` string, uuid
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required: The name of the variable
  - `value` string, required: The value of the variable
  - `tags` string[]: A list of variable tags

## Other responses

- `422`: Validation Error

---

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