Skip to Content
Developer APIWidget Config API

Widget Config API

Endpoint:

GET /api/widget/config

Required 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 key
  • 403: domain not allowed
  • 404: agent not found
Last updated on
Dukon | Docs