Configuration
Configure the SDK with optional settings for base URL, timeout, and retries.
Options
| Option | Type | Default | Description |
|---|---|---|---|
| apiKey | string | — | Required. Your Lystica API key. |
| baseUrl | string | https://api.lystica.cloud | API base URL. |
| timeout | number | 30000 | Request timeout in ms. |
| maxRetries | number | 2 | Auto-retries on 5xx / network errors. |
Example
const lystica = new LysticaCloud({
apiKey: "lys_live_...", // Required
baseUrl: "https://...", // Default: https://api.lystica.cloud
timeout: 30000, // Default: 30s
maxRetries: 2, // Default: 2 (retries on 5xx / network errors)
});