/v1/deployments/{uid}/env-varsReturns the deployment's environment variables, sorted by key. Values are never returned
here; masked_value is always ••••••••. To read one value, use
Reveal an environment variable.
Requires a workspace role that can read secrets (viewers cannot).
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.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The environment variables, without values.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the variable.
keystringRequiredVariable name.
scopestringRequiredAlways build. Every variable is available at build time and at runtime.
is_secretbooleanRequiredWhether the value is marked secret.
masked_valuestringRequiredAlways ••••••••. The value is never returned here.
created_atstring (date-time)RequiredWhen the variable was created.
updated_atstring (date-time)RequiredWhen it was last changed.
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.