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 by audience. Choose the authentication method that fits your use case, then browse the endpoints in the sidebar.

Who uses what

User APIs (PAT-friendly)

Discovery

List available models on your instance.

Authentication & Session

Login, SSO, token refresh, registration, password management, /v1/auth/me.

Personal Access Tokens

Create, list, rotate, and revoke long-lived API tokens for programmatic access.

AI Inference

OpenAI-compatible chat completions and text completions.

Chat / Sessions

Preview — not currently enabled. Session-based chat management will be enabled in an upcoming release.

Knowledge Bases

Create knowledge bases, upload files, query for context, retrieval-augmented chat.

Researcher

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

Quota

View the caller’s remaining quota for chat, embeddings, and other metered operations.

Admin APIs

Tenant Admin

Tenant management, sub-organizations, tenant-tier API keys, sanitizer policies, directory sync. Contact support for programmatic access.

System Admin

Cross-tenant provisioning, tier configuration, model defaults, governance (EU AI Act), audit logs, system health. Contact support for programmatic access.