Loading documentation...
REST API endpoints and payload specifications powering the Operator website chat widget.
Embed the Operator widget on any website using this standard script tag:
<script src="https://app.operator.ai/widget.js" data-org-id="YOUR_ORGANIZATION_ID"></script>When loaded, the script checks domain whitelisting, retrieves the organization's branding theme, and renders the floating launcher.
GET /api/widget/config?orgId={organizationId}{
"enabled": true,
"theme": {
"themeMode": "light",
"primaryColor": "#7a5af8",
"borderRadius": "0.75rem"
},
"branding": {
"companyName": "Acme Family Dental",
"tagline": "24/7 AI Receptionist",
"welcomeMessage": "Hi! How can I help you book or answer questions today?"
},
"launcher": {
"position": "bottom_right",
"icon": "message-square",
"size": "medium"
},
"customization": {
"starterQuestions": [
"What are your business hours?",
"How do I book an appointment?",
"What services do you offer?"
]
}
}POST /api/widget/session`json`jsonPOST /api/widget/chat`json