Projects

Reveal the plaintext value of a resolved environment variable.

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.

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: none declared

Path parameters

project_idinteger required

Project ID or slug

keystring required

Environment variable key

Query parameters

environment_idinteger

Optional environment ID

var_idinteger

Exact manual environment-variable row ID

service_idinteger

Integration service ID shown by the resolved list

Response

Regular manual or integration variable value

valuestring required

Plaintext for a regular manual or integration-sourced variable. Marked secret manual variables never produce this response.

Changes

No recorded changes to this operation across all 50 revisions of this API.