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
// Send the first message; the response supplies sessionId.
const response = await fetch('/api/widget/{chatbotId}/chat', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ message: 'Hello, I need help!', language: 'en' })
});

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

// Continue the same conversation.
await fetch('/api/widget/{chatbotId}/chat', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    sessionId,
    message: 'Can you explain that in more detail?',
    language: 'en'
  })
});

Authentication

REST v1 and MCP use a company API key. Never expose a secret key in a public website widget. The chat example above uses the public widget endpoint.

Authorization: Bearer cr_your_api_key_here