OpenAPI 3.0.3

API & MCP

Integrate ChatReact into your applications. Complete REST API with interactive explorer and code examples.

REST & MCP API

Full REST API plus Model Context Protocol for AI assistants

Secure Authentication

API keys with cr_ prefix for secure access control

Webhook Events

Real-time notifications for chat sessions and more

Rate Limiting

60 req/min widget, 120 req/min admin

Quick Start

example.js
// Initialize chat session
const response = await fetch('/api/widget/{chatbotId}/session', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ visitorId: 'visitor_123' })
});

const { sessionId } = await response.json();

// Send message
await fetch('/api/widget/{chatbotId}/message', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    sessionId,
    content: 'Hello, I need help!'
  })
});

Authentication

Most API endpoints require an API key. Add it in the Authorization header:

Authorization: Bearer cr_your_api_key_here