Skip to main content

Get Environment Value by Key

Endpoint: GET /api/environment/{key}

Retrieves the value of an environment variable by its key.

Path parameters

ParameterDescriptionTypeRequired/ Optional
keyThe environment variable key to retrieve.stringRequired.

Response

Returns the value associated with the retrieved key.

Examples

Get an environment variable by key

Request

curl -X 'GET' \
'https://<YOUR-SERVER-URL>/api/environment/sampleKey' \
-H 'accept: text/plain' \
-H 'X-Authorization: <TOKEN>'

Response

sampleValue