---
title: "Get a regular environment variable value by key. Marked secrets return 403."
method: GET
path: "/projects/{project_id}/env-vars/{key}/value"
tags: ["Projects"]
---

# Get a regular environment variable value by key. Marked secrets return 403.

`GET /projects/{project_id}/env-vars/{key}/value`

## Request

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

## Path parameters

- `project_id` integer, required
- `key` string, required

## Query parameters

- `environment_id` integer
- `var_id` integer

## Response `200`

Regular environment variable value

- EnvironmentVariableValueResponse
  - `value` string, required: Plaintext for a regular manual or integration-sourced variable. Marked secret manual variables never produce this response.

## Other responses

- `403`: Marked secret values are write-only
- `404`: Project or variable not found
- `409`: Environment variable key is ambiguous
- `500`: Internal server error

## Changes

- **2026-11-25** `480a86944327`: 1 info
  - the endpoint scheme security `bearer_auth` was added to the API
- **2026-07-31** `00b2fffe41df`: 3 info
  - added the new optional `query` request parameter `var_id`
  - added the non-success response with the status `403`
  - added the non-success response with the status `409`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/env-vars/:key/value/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)
