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 →
Overview
The Chatbase REST API enables you to integrate AI-powered conversations into any application or workflow. Build custom chat experiences, automate customer interactions, and manage your AI agents programmatically.Send Messages
Chat with your AI agents and handle real-time streaming responses
Manage Agents
Create, configure, and update AI agents with custom training data
Access Data
Retrieve conversations, leads, and analytics from your AI interactions
Quick Start
Get Your API Key

- Visit your Chatbase Dashboard
- Navigate to Workspace Settings → API Keys
- Click Create API Key and copy the generated key
Get Your Agent ID

- Select your AI Agent in the dashboard
- Go to Settings → General
- Copy the Chatbot ID (UUID format)
Chat API Streaming
The chat API supports real-time streaming responses for better user experience.Performance Best Practices
🚀 Try It Live!
Ready to see the magic in action? Dive straight into our interactive playground where you can test every API endpoint, experiment with real responses, and build your integration in real-time.🎮 Launch Interactive Playground
Test APIs instantly • No setup required • Real-time responses • Copy working code snippets
Key API Endpoints
Chat API
Send messages and receive AI responses with streaming support
Agent Management
Create, update, and configure AI agents programmatically
Conversations
Access chat history and conversation analytics
Contacts
Create and manage contacts for your AI agents