Chat with a chatbot
Chat
Chat with a chatbot
Send a message to a chatbot and receive a response. Supports streaming responses. Can continue existing conversations by providing a conversationId.
POST
Chat with a chatbot
Looking for API v2? The new Chatbase API v2 features structured error codes, cursor-based pagination, and SSE streaming. Note that API v2 is available starting from the Standard Plan. Check out the API v2 Reference →
Authorizations
API key in Bearer token format
Body
application/json
ID of the chatbot to chat with
Example:
"ckl123abc456"
Array of messages in the conversation
ID of existing conversation to continue, if not provided, the conversation will not be saved
Example:
"conv_abc123"
External ID of the contact/user
Example:
"user_123"
AI model to use for the response
Available options:
gpt-4o, gpt-4o-mini, o4-mini, gpt-oss-120b, gpt-oss-20b, gpt-5, gpt-5.1, gpt-5.2, gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, gpt-5-mini, gpt-5-nano, claude-opus-4-6, claude-sonnet-4-6, claude-opus-4-5, claude-haiku-4-5, claude-sonnet-4-5, gemini-2.5-flash, gemini-2.5-pro, gemini-3-flash, gemini-3.1-flash-lite, gemini-3.1-pro, grok-3, grok-3-mini, grok-4, DeepSeek-V3, DeepSeek-R1, Llama-4-Scout-17B-16E-Instruct, Llama-4-Maverick-17B-128E-Instruct-FP8, kimi-k2 Example:
"gpt-4o-mini"
Temperature setting for AI response creativity
Required range:
0 <= x <= 1Example:
0.7
Whether to stream the response
Response
Chat response
The chatbot's response text
Example:
"Hello! How can I help you today?"