Skip to main content
GET
Read the decrypted variables and dotenv representation for one environment. Use a developer access key. This endpoint is part of the CLI API, with its own response format and rate limit. Required scopes: env:read. The key owner must still be a workspace owner or administrator. Missing scope or admin access returns 403; an unavailable or differently pinned project returns 404. An unknown environment returns 404. The response contains plaintext secrets; keep it out of logs and browser clients. The example only contains a non-secret label.

Parameters

string
required
Nonempty project record ID. Must match the key’s project pin, if set.
string
required
1–40 characters; letters, numbers, hyphens, or underscores, starting with a letter or number. Names are trimmed.

Response

200 — Top-level environment, snapshot version, vars string map, and serialized dotenv string.