POST
/v1/deployments/{uid}/env-vars/{env_uid}/revealReturns 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
uidstringRequiredThe deployment's uid.
env_uidstringRequiredThe environment variable's uid.
Headers
X-Workspace-SlugstringRequiredSlug 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.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the variable.
keystringRequiredVariable name.
valuestringRequiredThe decrypted plaintext value. Sensitive.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The resource does not exist or you cannot access it. |
Errors use the standard error format.