> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# get

> Get a configuration value by dot-notation path.

Get a configuration value by dot-notation path. Environment variables are
substituted in the returned value.

## **Parameters**

**`key_path`** `str` — required

Dot-separated path to the config value (e.g., `"security.ssl_enabled"`,
`"server.port"`).

---

**`default`** `Any` — default: None

Default value if the path is not found.

---

## **Returns**

`Any` -- The configuration value with environment variables substituted, or the
default if not found.

## **Example**

```python {5-7}
from signalwire.core.config_loader import ConfigLoader

loader = ConfigLoader(["config.json"])

port = loader.get("server.port", 3000)
ssl_enabled = loader.get("security.ssl_enabled", False)
auth_user = loader.get("security.auth.basic.user", "signalwire")

print(f"Port: {port}, SSL: {ssl_enabled}, User: {auth_user}")
```