***

title: get_section
slug: /reference/python/agents/configuration/config-loader/get-section
description: Get an entire configuration section with environment variables substituted.
max-toc-depth: 3
---------------------

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

Get an entire configuration section with all environment variables substituted.

## **Parameters**

<ParamField path="section" type="str" required={true} toc={true}>
  The top-level section name (e.g., `"security"`, `"server"`, `"session"`).
</ParamField>

## **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"], ...}
```