Skip to main content
Standard Plan required. The Chatbase API v2 is available starting from the Standard Plan. View pricing →
Most conversation endpoints apply exclusively to conversations created programmatically via the Chatbase API. Conversations generated through the bubble or external integrations cannot be accessed using these endpoints. The exception is the Export conversations endpoint, which returns conversations from all sources.

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

  1. Go to the Chatbase Dashboard
  2. Go to Workspace settingsAPI keys
  3. Click Create API Key and copy the generated key
Store your API key securely. Never expose it in client-side code.
2

Get your Agent ID

  1. Select your AI Agent in the dashboard
  2. Go to the agent’s SettingsGeneral
  3. Copy the Agent ID from the Agent details card
3

Send your first message

Response:

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