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

OpenAPI 3.0

Full specification to download – for Postman, codegen and your own SDKs

Rate Limiting

30 req/min REST API, 60 req/min MCP and widget

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