For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • Configuration
        • AuthHandler
        • ConfigLoader
          • findConfigFile
          • get
          • getAll
          • getConfig
          • getConfigFile
          • getFilePath
          • getSection
          • has
          • hasConfig
          • interpolateEnvVars
          • load
          • loadFromObject
          • mergeWithEnv
          • search
          • set
          • substituteVars
        • Environment Variables
        • Logging
        • PromptManager
        • SchemaUtils
        • ServerlessAdapter
        • SessionManager
        • SslConfig
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
      • SkillRegistry
      • Skills
      • SwaigFunction
      • SwmlBuilder
      • SWMLService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • ChatResource
      • Compat
      • Datasphere
      • Fabric
      • ImportedNumbersResource
      • Logs
      • LookupResource
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSubResource
      • Queues
      • Recordings
      • Registry
      • RestClient
      • RestError
      • Short Codes
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Parameters
  • Returns
  • Example
AgentsConfigurationConfigLoader

get

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

getAll

Next
Built with

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

path
stringRequired

Dot-separated key path into the config object (e.g., "server.port", "security.ssl_enabled").

defaultValue
T

Value returned when the path does not exist.

Returns

T — The resolved value, or defaultValue if not found.

Example

1import { ConfigLoader } from '@signalwire/sdk';
2
3const config = new ConfigLoader('./config.json');
4
5const port = config.get<number>('server.port', 3000);
6const ssl = config.get<boolean>('security.ssl_enabled', false);
7const user = config.get<string>('security.auth.basic.user', 'signalwire');
8
9console.log(`Port: ${port}, SSL: ${ssl}, User: ${user}`);