GET/api/public/widget/config/:widget_code
Returns the public base configuration of a widget (design, greeting text, language) — required before a widget is initialized in the browser. No auth token needed since this data would be publicly visible in the page source anyway.
Auth & Security
No authentication required
Idempotent: Yes
Parameters
widget_code(path, string, required)Example Response
{"ok":true,"data":{"widget_code":"...","display_name":"...","welcome_message":null,"theme":{},"language":"auto","voice_enabled":false,"branding_required":false}}Error Codes
404 WIDGET_NOT_FOUND — Widget code does not exist or is deactivated.403 CHAT_UNAVAILABLE — The chat is currently unavailable (e.g. missing/expired entitlement of the tenant).Live Test Proof
Success (200) as well as both negative cases (404 unknown code, 403 without active entitlement) verified live.