---
title: "One variable every project in the group inherits, as listed: a plain value is masked and a secret's value is never returned."
method: GET
path: "/project-groups/{group_id}/env-vars/{var_id}"
tags: ["Project Groups"]
---

# One variable every project in the group inherits, as listed: a plain value is masked and a secret's value is never returned.

`GET /project-groups/{group_id}/env-vars/{var_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/project-groups/{group_id}/env-vars/{var_id}`
- Auth: HTTP bearer

## Path parameters

- `group_id` integer, required
- `var_id` integer, required

## Response `200`

The variable (value masked)

- GroupEnvVarResponse: A group variable as returned by the API. `value` is `"***"` in lists, plaintext only in the create/update response of a non-secret variable, and always `null` for secrets.
  - `created_at` string, date-time, required
  - `environment_slug` string, nullable: Environment slug this applies to; `null` means every environment.
  - `id` integer, required
  - `include_in_preview` boolean, required
  - `is_secret` boolean, required
  - `key` string, required
  - `updated_at` string, date-time, required
  - `value` string, nullable

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions on a member project
- `404`: Project group or variable not found
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/project-groups/:group_id/env-vars/:var_id/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
