---
title: "Get an environment variable"
method: GET
path: "/projects/{projectId}/environments/{environmentId}/variables/{variableId}"
tags: ["Environment Variables"]
---

# Get an environment variable

`GET /projects/{projectId}/environments/{environmentId}/variables/{variableId}`

Retrieve a single user-defined environment variable.

## Path parameters

- `projectId` string, required
- `environmentId` string, required
- `variableId` string, required

## Response `default`

- EnvironmentVariable
  - `id` string, required — The identifier of EnvironmentVariable
  - `created_at` string, date-time, nullable, required — The creation date
  - `updated_at` string, date-time, nullable, required — The update date
  - `name` string, required — Name of the variable
  - `attributes` object, required — Arbitrary attributes attached to this resource
  - `value` string — Value of the variable
  - `is_json` boolean, required — The variable is a JSON string
  - `is_sensitive` boolean, required — The variable is sensitive
  - `visible_build` boolean, required — The variable is visible during build
  - `visible_runtime` boolean, required — The variable is visible at runtime
  - `application_scope` string[], required — Applications that have access to this variable
  - `project` string, required — The name of the project
  - `environment` string, required — The name of the environment
  - `inherited` boolean, required — The variable is inherited from a parent environment
  - `is_enabled` boolean, required — The variable is enabled on this environment
  - `is_inheritable` boolean, required — The variable is inheritable to child environments

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
