Developers
Build on your chat data.
A REST API with personal access tokens, webhooks for live events, a JavaScript API for the widget and an MCP server for AI assistants.
REST API
Chats, customers, tickets, reports and more, as JSON. Make a token in Settings › API access; the panel shows every endpoint with a ready example.
Webhooks
Chat started, closed and rated, new messages, tickets, goals and sales, posted to your address as they happen.
MCP server
AI assistants that support the Model Context Protocol read chats, customers, tickets and reports, and reply with a read and write token.
Widget JavaScript API
Open, hide and show the chat, set the customer’s name and e-mail, report goals and sales, and listen to chat events.
A first request
Every request uses your token as a bearer token.
curl "https://your-address/api/tickets?status=open" \ -H "Authorization: Bearer $XENCHATS_TOKEN"
Need something we don’t have yet?
Tell us what you are building. We read every message.