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

# getConfig

> Return a shallow copy of the entire configuration (Python-compat alias for getAll).

[ref-getall]: /docs/server-sdks/reference/typescript/agents/configuration/config-loader/get-all

Return a shallow copy of the entire loaded configuration. Python-compat alias
for [`getAll()`][ref-getall]; the two are functionally identical. Use
`getConfig()` when porting from the Python SDK.

## **Returns**

`Record<string, unknown>` -- a shallow copy of the top-level config object.

## **Example**

```typescript {4}
import { ConfigLoader } from '@signalwire/sdk';

const loader = new ConfigLoader('config.json');
const config = loader.getConfig();
console.log(Object.keys(config));
```