Skip to content

env

Lists every configuration key and environment variable.

Property Value
ID env
Path GET /actuator/env
Route name actuator.env
Exposure Not exposed by default
Middleware middleware, then env.middleware
Configuration env
Class Nwidart\Actuator\Http\Controllers\EnvController

HTTP 200 with a JSON object:

Key Type Description
activeProfiles array One entry: the application environment (APP_ENV).
propertySources array Two sources, config then environment.

Each property source:

Key Type Description
name string config or environment.
properties object Map of key to {"value": ...}, sorted by key.
Source Keys
config Every configuration key, flattened with dots, for example database.default.
environment Every variable from getenv() and $_ENV. $_ENV wins when both define a key.

Each value is the real value when env.show_values grants access, otherwise ******. The keys are always listed.

Terminal window
curl http://localhost/actuator/env
{
"activeProfiles": ["production"],
"propertySources": [
{
"name": "config",
"properties": {
"app.debug": { "value": "******" },
"app.key": { "value": "******" },
"app.name": { "value": "******" }
}
},
{
"name": "environment",
"properties": {
"APP_ENV": { "value": "******" },
"DB_HOST": { "value": "******" }
}
}
]
}

The example is shortened. A real response lists hundreds of keys.