Standard Plan required. The Chatbase API v2 is available starting from the Standard Plan. View pricing →
What is the Chatbase API v2?
The Chatbase API v2 is a redesigned REST API that provides a clean, consistent interface for interacting with your AI agents. It features structured error codes, cursor-based pagination, streaming support via Server-Sent Events, and a predictable response format. Base URL:Quick Start
1
Get your API key
- Go to the Chatbase Dashboard
- Go to Workspace settings → API keys
- Click Create API Key and copy the generated key
2
Get your Agent ID
- Select your AI Agent in the dashboard
- Go to the agent’s Settings → General
- Copy the Agent ID from the Agent details card
3
Send your first message
Endpoints
Base URL:https://www.chatbase.co/api/v2
File upload base URL:
https://files.chatbase.co/api/v2
Response Headers
Every response includes these headers:Next Steps
Authentication
API keys, Bearer tokens, and rate limiting
Streaming
Real-time SSE streaming responses
Error Handling
Structured error codes and troubleshooting
Pagination
Cursor-based pagination for list endpoints
