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

# getConfigFile

> Return the path of the loaded config file (Python-compat alias for getFilePath).

[ref-getfilepath]: /docs/server-sdks/reference/typescript/agents/configuration/config-loader/get-file-path

Return the absolute path of the loaded config file, or `null` when the loader
was populated via `loadFromObject()`. Python-compat alias for
[`getFilePath()`][ref-getfilepath]; the two are functionally identical.

## **Returns**

`string | null` -- the file path, or `null` if config was loaded from an
object.

## **Example**

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

const loader = new ConfigLoader('config.json');
console.log(loader.getConfigFile()); // absolute path

const inMemory = new ConfigLoader();
inMemory.loadFromObject({ server: { port: 3000 } });
console.log(inMemory.getConfigFile()); // null
```