Skip to main content
The co-mind.ai API follows RESTful conventions and is fully documented via our OpenAPI 3.1 specification. All endpoints listed below are auto-generated from openapi.yaml.

Base URL

All endpoints are prefixed with /v1/ unless otherwise noted.

Authentication

All API requests (except /health and public auth endpoints) require a Bearer token:

Request Format

  • Content-Type: application/json for all JSON request bodies
  • File uploads: multipart/form-data
  • Character encoding: UTF-8

Response Format

All responses return JSON with consistent structure:

Status Codes

Streaming

Chat and completion endpoints support Server-Sent Events (SSE) streaming by setting "stream": true:
Streamed responses arrive as data: lines:

Rate Limiting

When you exceed rate limits, the API returns 429 Too Many Requests. Implement exponential backoff in your client:

Endpoint Categories

The API is organized into these categories — browse them in the sidebar:

Authentication

Login, SSO, token refresh, registration, password management.

Chat & Completions

OpenAI-compatible chat, text completion, and streaming.

Knowledge Bases

Create KBs, upload files, query for context, RAG chat.

Echo Engine

Audio transcription (STT), text-to-speech (TTS), recordings.

Researcher

Web search, content scraping, deep research, report synthesis.

Document Analyzer

Upload documents, extract data, human-in-the-loop review.

Admin

Tenant management, directory sync, sanitizer policies, audit logs.

Discovery

Models, backends, capabilities, health checks.