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

# get_section

> Get an entire configuration section with environment variables substituted.

Get an entire configuration section with all environment variables substituted.

## **Parameters**

**`section`** `str` — required

The top-level section name (e.g., `"security"`, `"server"`, `"session"`).

---

## **Returns**

`dict[str, Any]` -- The section contents with all variables substituted, or an
empty dict if the section does not exist.

## **Example**

```python {4}
from signalwire.core.config_loader import ConfigLoader

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

print(security)
# {"ssl_enabled": True, "cors_origins": ["https://app.example.com"], ...}
```