openapi.yaml at the repository root.
For a step-by-step tour that exercises the whole surface with real requests, follow the API Walkthrough.
Authentication
Every request (except the unauthenticated/v1/auth/* bootstrap endpoints) needs a Bearer token:
PATs are single-tenant by design — a PAT stays scoped to the workspace active on your session at creation time. Multi-tenant users can switch the active tenant on their session JWT before minting a new PAT for another workspace.
What the API covers
The public surface exposes the following areas. See the API Reference for the complete endpoint list and payload schemas in each area.- Discovery — list models available on this deployment
- Authentication — login (email + password, SSO), token refresh, current-user info, password management
- API Tokens — create, list, rotate, and revoke Personal Access Tokens; discover available scopes
- Chat completions — stateless, OpenAI-compatible chat
- Knowledge bases — create and manage knowledge bases, upload and index files, query for retrieved chunks, and chat with retrieval-augmented generation
- Researcher — single-shot web search, multi-step research sessions with pause/resume/critique/improve, content analysis and synthesis
- Translation — text translation between languages with ISO 639-1 codes and optional source-language detection
- Embeddings — turn text into fixed-length vectors for your own similarity search or reranking
- Chat Sessions (Preview) — stateful, server-orchestrated conversations. Not currently enabled; documented for integrator preparation
Admin surfaces (not in the public reference)
Administrator endpoints are session-JWT only and are not documented in the public reference. If your integration needs programmatic access:- Tenant Admin — tenant management, sub-organizations, tenant-tier API keys, sanitizer policies, directory sync (Tenant Admin API)
- System Admin — cross-tenant provisioning, tier configuration, model defaults, governance, audit logs, system health (System Admin API)
Error format
Every error follows the same envelope:HTTP status codes
Example error responses
Example error responses
Invalid or missing token (401):Model not found (404):Rate limited (429):
Streaming
Chat and completion endpoints support Server-Sent Events (SSE) by setting"stream": true in the request body. Streamed responses arrive as data: lines terminated by data: [DONE].
Generating a client SDK
The publishedopenapi.yaml is the source of truth. Generate typed clients in 50+ languages with OpenAPI Generator:
Support
Email: support@co-mind.ai Response time: 24-48 hours (business days) When contacting support, include:- The exact request (curl command or code snippet)
- The complete error response, including HTTP status
- Expected vs. actual behavior
- Language / framework version and network setup

