Overview
The Widget API powers the embeddable chat widget. All endpoints are public (no authentication required) but rate-limited and scoped to individual agents.Endpoints
Create or resume a session
string
required
The agent’s unique identifier.
init
Creates a new chat session or resumes an existing one.
localStorage as setter_visitor_{agentId}. Returning visitors send their token to resume the previous conversation.
Send a message
send
Poll for messages
Get widget config
Rate limits
429 response — The widget displays a “sending too quickly” message.
Timeout — If the AI doesn’t respond within 30 seconds, a “Sorry, I took too long” fallback is shown.
Lead limits
When an organisation exceeds its monthly lead limit, new sessions are created withai_enabled: false. The agent won’t respond automatically. The conversation is still created so the lead’s message is captured.