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
1
Get Your API Key

- Visit your Chatbase Dashboard
- Navigate to Workspace Settings → API Keys
- Click Create API Key and copy the generated key
Store your API key securely and never expose it in client-side code.
2
Get Your Agent ID

- Select your AI Agent in the dashboard
- Go to Settings → General
- Copy the Chatbot ID (UUID format)
3
Send Your First Message
Test your integration with a simple chat request:Expected Response:
Chat API Streaming
The chat API supports real-time streaming responses for better user experience.Performance Best Practices
Optimization Strategies:
- Use streaming for chat responses to improve perceived performance
- Cache agent responses when appropriate
- Batch multiple operations when possible
- Monitor and optimize conversation context length