---
title: "Reveal the plaintext value of a resolved environment variable."
method: GET
path: "/projects/{project_id}/env-vars/resolved/{key}/value"
tags: ["Projects"]
---

# Reveal the plaintext value of a resolved environment variable.

`GET /projects/{project_id}/env-vars/resolved/{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/resolved/{key}/value`
- Auth: HTTP bearer

Mirrors `GET /projects/{id}/env-vars/{key}/value` but handles keys sourced
from linked integrations (which are not stored in the `env_vars` table).
Resolution order mirrors the merged view:

1. Manual env var with this key — this endpoint reads the manual store when
   the key exists there, then writes its own reveal audit event so callers
   can safely use one endpoint regardless of source.
2. Integration env var supplied by a linked external service.

Returns 403 for a manual variable marked secret, and 404 when neither a
manual var nor an integration produces the key.

## Path parameters

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

## Query parameters

- `environment_id` integer
- `var_id` integer
- `service_id` integer

## Response `200`

Regular manual or integration 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, key, or integration 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`: 4 info
  - added the new optional `query` request parameter `service_id`
  - 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`
- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

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