Loading...
Please wait while we prepare your content
We use cookies to enhance your experience, analyze site usage, and assist in our marketing efforts. You can manage your preferences or learn more in our Cookie Policy.
Configure the SDK with optional settings for base URL, timeout, and retries.
| 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. |
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)
});