---
title: "Get a Variable"
method: GET
path: "/vars/{var}"
tags: ["variables"]
---

# Get a Variable

`GET /vars/{var}`

Show details of a specific variable.

For `sensitive: true` variables, their actual `value` is not exposed,
and `null` returned instead.

## Path parameters

- `var` string, required

## Query parameters

- `include` string[]
- `fields` object
  - `users` string — The comma-separated list of fields to return in response for User resource.
  - `vars` string — The comma-separated list of fields to return in response for Variable resource.

## Response `200`

Success.

## Other responses

- `404` — Variable not found, or user unauthorized to perform action.
- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/revisions/fc927526ad12/schema)
