Skip to content

Reveal an environment variable

POST/v1/deployments/{uid}/env-vars/{env_uid}/reveal

Returns the decrypted plaintext value of one environment variable. Treat the response as a secret: do not log it or store it in plain text.

Every call is recorded in the workspace audit log. Requires a workspace role that can manage secrets.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The deployment's uid.

env_uidstringRequired

The environment variable's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The variable with its plaintext value.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
uidstringRequired

Unique identifier of the variable.

keystringRequired

Variable name.

valuestringRequired

The decrypted plaintext value. Sensitive.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The resource does not exist or you cannot access it.

Errors use the standard error format.