Client Options
All options
const talonic = new Talonic({
apiKey: process.env.TALONIC_API_KEY!,
baseUrl: "https://api.talonic.com", // default
timeout: 60_000, // ms; default 60s
maxRetries: 3, // 429, 500, 502, 503, 504, network, timeout
fetch: customFetch, // optional override (e.g. for testing)
})| Parameter | Type | Description |
|---|---|---|
| apiKey * | string | Your Talonic API key. Starts with `tlnc_`. |
| baseUrl | string | API base URL. Default: `https://api.talonic.com` |
| timeout | number | Request timeout in milliseconds. Default: `60000` |
| maxRetries | number | Max retry attempts for transient failures. Default: `3` |
| fetch | function | Custom fetch implementation for testing or proxying. |