Skip to content

SDK API Reference / SDKConfig

Interface: SDKConfig

SDK configuration options

Properties

apiKey?

optional apiKey: string

TD API key (format: key_id/secret) Optional when used in browser with cookie-based authentication


logLevel?

optional logLevel: LogLevel

Log level for SDK operations

Default

ts
LogLevel.INFO

profile?

optional profile: string

TD profile name Used for profile-based usage tracking


proxy?

optional proxy: string

HTTP proxy URL for corporate networks with SSL inspection

Supports authentication: http://user:pass@proxy.corp.com:8080

Examples

ts
'http://proxy.corp.com:8080'
ts
'http://user:password@proxy.corp.com:8080'

site?

optional site: TDSite | string & object

TD site/region (accepts canonical names like 'us01', 'ap01' or aliases like 'jp01', 'jp')

Default

ts
'us01'