***

title: get
slug: /reference/typescript/agents/configuration/config-loader/get
description: Retrieve a configuration value using a dot-notation path.
max-toc-depth: 3
---------------------

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

Retrieve a configuration value using a dot-notation path (e.g., `'server.port'`).
Prototype-pollution keys (`__proto__`, `constructor`, `prototype`) are blocked
and return the default value.

## **Parameters**

<ParamField path="path" type="string" required={true} toc={true}>
  Dot-separated key path into the config object (e.g., `"server.port"`,
  `"security.ssl_enabled"`).
</ParamField>

<ParamField path="defaultValue" type="T" toc={true}>
  Value returned when the path does not exist.
</ParamField>

## **Returns**

`T` -- The resolved value, or `defaultValue` if not found.

## **Example**

```typescript {5-7}
import { ConfigLoader } from '@signalwire/sdk';

const config = new ConfigLoader('./config.json');

const port = config.get<number>('server.port', 3000);
const ssl = config.get<boolean>('security.ssl_enabled', false);
const user = config.get<string>('security.auth.basic.user', 'signalwire');

console.log(`Port: ${port}, SSL: ${ssl}, User: ${user}`);
```