Skip to main content
This guide is the developer’s overview of the public co-mind.ai API — what’s available, how authentication and errors work, and how to generate a typed client. For the exact endpoint list, request/response schemas, and a try-it-out console, see the API Reference tab; the machine-readable spec is 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:
Two token types: 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)
Reach out at support@co-mind.ai and we will share the endpoint specification scoped to your use case.

Error format

Every error follows the same envelope:

HTTP status codes

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 published openapi.yaml is the source of truth. Generate typed clients in 50+ languages with OpenAPI Generator:
Or import into Swagger Editor or Redoc for another interactive view.

Support

Email: support@co-mind.ai Response time: 24-48 hours (business days) When contacting support, include:
  1. The exact request (curl command or code snippet)
  2. The complete error response, including HTTP status
  3. Expected vs. actual behavior
  4. Language / framework version and network setup