***

title: get
slug: /reference/python/agents/configuration/config-loader/get
description: Get a configuration value by dot-notation path.
max-toc-depth: 3
---------------------

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

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

## **Parameters**

<ParamField path="key_path" type="str" required={true} toc={true}>
  Dot-separated path to the config value (e.g., `"security.ssl_enabled"`,
  `"server.port"`).
</ParamField>

<ParamField path="default" type="Any" default="None" toc={true}>
  Default value if the path is not found.
</ParamField>

## **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}")
```