API reference
Chat Data API
Create and train chatbots, send messages, and read conversations, leads and analytics. Every page sends a real request with your key and gives you code to copy.
Your first callPOST /chat
Copied code reads $CHAT_DATA_API_KEY
curl 'https://api.chat-data.com/api/v2/chat' \ -H "Authorization: Bearer $CHAT_DATA_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "messages": [ { "role": "assistant", "content": "Hi! How can I help you today?" }, { "role": "user", "content": "What are your opening hours?" } ], "chatbotId": "6650f1c2a9e4b83d2c7a1f05"}'Loading…⌘↵
We're open Monday to Friday, 9am to 6pm EST.Outside those hours you can email [email protected] and we'll reply the next business day.- 1Get an API keyPaste one in the setup bar, or sign in to pick one.Where do I get a key?
- 2Choose a chatbotIts id fills every sample and request.
- 3Send your first messagePress Send in "Your first call", then copy the code into your server.Go to your first call
Concepts
AuthenticationAuthenticate Chat Data API requests with a workspace or chatbot-scoped API key sent as a Bearer token.ErrorsHow the Chat Data API reports errors: HTTP status codes, the error body shape, and how to fix the common ones.Rate limitsThe Chat Data API allows 600 requests per minute per workspace. Learn how 429 responses and Retry-After work.WebhooksReceive real-time Chat Data events (chats, live-chat escalations, lead submissions, visitors joining or leaving live chat) on your own HTTP(S) endpoint.
Setup guides (Shopify, WordPress, WhatsApp, Slack and more) live in the Chat Data cookbook.
Endpoints
Chatbots
27 endpointsConversations
6 endpointsFiles, analytics, account & sub-users
10 endpointsLast updated October 14, 2026