Learn how to integrate Suada with vanilla JavaScript applications
Option | Type | Required | Description |
---|---|---|---|
apiKey | string | Yes | Your Suada API key |
environment | ’development’ | ‘production’ | No | Environment setting (defaults to ‘development’) |
baseUrl | string | No | Custom API base URL |
debug | boolean | No | Enable debug logging |
timeout | number | No | Request timeout in milliseconds |
Option | Type | Required | Description |
---|---|---|---|
container | string | HTMLElement | Yes | Target container element or selector |
theme | ’light’ | ‘dark’ | No | UI theme (defaults to ‘light’) |
placeholder | string | No | Input placeholder text |
initialMessages | Message[] | No | Pre-loaded chat messages |
privacyMode | boolean | No | Enable enhanced privacy features |