Widget Config API
Endpoint:
GET /api/widget/configRequired Header
X-Widget-Publishable-Key: <key>
Example Request
curl -X GET "https://your-domain.com/api/widget/config" \
-H "X-Widget-Publishable-Key: wpk_live_xxx"Example Response
{
"assistantName": "Support Agent",
"initialMessage": "Hi! How can I help you today?",
"themeColor": "#fe551a",
"avatarUrl": null,
"suggestedQuestions": ["How do I get started?"],
"removeBranding": false,
"allowedDomains": ["example.com"]
}Errors
401: missing/invalid publishable key403: domain not allowed404: agent not found
Last updated on