Get environment variable
Returns a single environment variable by key. Secret values are masked.
Returns a single environment variable by key. Secret values are masked.
Authorization
secretKey API key authentication. Allowed headers-- "Authorization: ApiKey <secret_key>".
In: header
Path Parameters
The unique key of the environment variable (e.g. BASE_URL)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/environment-variables/BASE_URL"{ "data": { "_id": "string", "_organizationId": "string", "key": "string", "type": "string", "isSecret": true, "values": [ { "_environmentId": "string", "value": "string" } ], "createdAt": "string", "updatedAt": "string" }}Retrieve a variable usage GET
Returns the workflows that reference this environment variable via `{{env.KEY}}` in their step controls. **variableId** is required.
Update a variable PATCH
Updates an existing environment variable. Providing `values` merges them into the existing per-environment values by `_environmentId`; envs not present in the request keep their stored value. Submitting the masked secret placeholder (the value returned by read endpoints for secret variables) as a real value is rejected.