Create a widget
Authentication
Request
Agent that answers visitors. Use an agent of your workspace; the id is not otherwise checked.
Full origins (URLs) the widget may be embedded on. At least one is required
(At least one origin is required). Each entry must parse as a URL (Invalid url).
Widget look and copy. On write, primary_color is required whenever branding is sent, and the object
REPLACES the stored branding (it is not merged). Widgets created without branding store {}, which is
what POST /widget/init then returns.
First message the chat shows. Trimmed; an empty string is treated as absent (stored as null).
Requests per minute allowed per widget credential on the public /widget/* endpoints.
Response
Widget created. The only response that ever contains plaintext_api_key.
A web-chat widget configuration. Returned by every /api/widgets endpoint. Field names are snake_case.

