Skip to content

Get Environment Value by Key

Endpoint: GET /api/environment/{key}

Retrieves the value of an environment variable by its key.

Path parameters

Parameter Description Type Required/ Optional
key The environment variable key to retrieve. string Required.

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