Paid plan required. The Chatbase API v2 is available on paid plans only. 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
Get your API key
- Go to the Chatbase Dashboard
- Navigate to Workspace Settings → API Keys
- Click Create API Key and copy the generated key
Endpoints
| Method | Endpoint |
|---|---|
GET | /api/v2/health |
POST | /api/v2/agents/{agentId}/chat |
POST | /api/v2/agents/{agentId}/conversations/{conversationId}/retry |
GET | /api/v2/agents/{agentId}/conversations |
GET | /api/v2/agents/{agentId}/conversations/{conversationId} |
GET | /api/v2/agents/{agentId}/conversations/{conversationId}/messages |
GET | /api/v2/agents/{agentId}/users/{userId}/conversations |
PATCH | /api/v2/agents/{agentId}/conversations/{conversationId}/messages/{messageId}/feedback |
Response Headers
Every response includes these headers:| Header | Description |
|---|---|
x-request-id | Unique request identifier. Include this when contacting support. |
X-RateLimit-Limit | Maximum requests allowed in the current window. |
X-RateLimit-Remaining | Requests remaining in the current window. |
X-RateLimit-Reset | Unix timestamp (ms) when the rate limit window resets. |