Headers
Your API key for authentication.
Body
UUID of the pathway to associate with the widget.
Array of domains where the widget can be embedded.
Rate limit for messages (minimum: 0).
Widget configuration object (flexible JSON).
Optional UUID of agent to associate with widget.
Response
HTTP status code (200 for success).
The created widget object containing:
id
(string): Generated widget UUIDpathway_id
(string): Associated pathway UUIDagent_id
(string | null): Associated agent UUID or nullallowed_domains
(string[]): Array of allowed domainsmessages_per_minute
(number): Rate limit for messagesconfig
(object): Widget configuration objectcreated_at
(string): ISO timestampupdated_at
(string): ISO timestamp
Always null on successful response.