Server config — /api/project/config/
On startup the SDK calls this once to get the project’s public configuration. Every field maps to a setting in the Configuration reference (the Dashboard side).
GET /api/project/config/Host: api.widget-chat.comX-Project-Secret-Key: YOUR_PROJECT_SECRET_KEYResponse (shape)
{ "name": { "defaultValue": "AI Makeup", "translations": { "fr": "…" } }, "welcome_message": { "defaultValue": "Hi! …", "translations": {} }, "system_instruction": { "defaultValue": "…", "translations": {} }, "default_locale": "en", "supported_locales": ["en", "fr"], "font_family": "Roboto", "color": "#B23B59", // or null = "Automatic" "avatar": "https://… or data:… or null", "show_avatar": true, "hide_bars_on_scroll": false, "fab_configuration": { "icon": "chat_bubble", "button_size": 56, "use_avatar_as_icon": false }, "chat_appearance": { "surface_color": null, "bot_bubble_color": null, "…": null }, "chat_appearance_dark": { "…": null }, "show_theme_toggle": true, "default_theme_mode": "system", "sound_configuration": { "sound_enabled": true, "sound_volume": 1.0, "…": true }, "enable_user_export": true, "enable_clear_history": true, "enable_file_attach": true, "dynamic_language_enabled": true, "language_switch_auto_detect": true, "ai_disclosure_enabled": true, "ai_disclosure_text": null, "ai_disclosure_require_ack": true, "message_reporting_enabled": true, "ai_info_url": null, "privacy_url": null, "ai_data_reuse_notice": false}Field-by-field
Every key above is documented — with type, default and precedence — in the Configuration reference. LocalizedText fields (name, welcome_message, system_instruction, ai_disclosure_text) have the shape { "defaultValue": string, "translations": { locale: string } }.
Defaults & forward-compat
Missing keys fall back to the SDK defaults, so an older backend that hasn’t shipped a new field keeps today’s behaviour (e.g. hide_bars_on_scroll defaults to false). Unknown keys are ignored.