API Reference
Cloud API (Beta): Manthan model routing (/v1/cloud), hosted memory (/v1/memory), agents (/v1/agent), and upcoming voice (/v1/voice). Our main focus today is local Watchman — see the local engine API.
Getting Started
Three steps to your first Cloud API call (Beta). Do it in the dashboard, or with the API:
- 1.Create an account —
POST /v1/auth/registerwith { email, password }, then confirm the 6-digit code at/v1/auth/verify-email. - 2.Create an API key —
POST /v1/keyswith { "name": "my-app" }, or a scoped key withPOST /v1/{service}/keys(cloud, memory, agents, voice). - 3.Call the API — pass the key as a bearer token (below). Local Watchman runs on
127.0.0.1:9180with no Cloud key required.
Authentication
Every Cloud request takes a bearer token. The base URL for Cloud endpoints is:
Authorization: Bearer $INCORD_KEY
Base URL: https://api.incord.aiGET /health, GET /v1/cloud/models and GET /v1/cloud/audio/voices are public (no key). Everything else returns 401 without a valid key, 402when your prepaid balance can't cover a metered call or you're over a quota, and 429 when you exceed your rate limit.
Quickstart
Call any model with Manthan smart cross-routing in the OpenAI Chat Completions shape:
curl https://api.incord.ai/v1/cloud/chat/completions \
-H "Authorization: Bearer $INCORD_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-4-5",
"messages": [{ "role": "user", "content": "Say hello in one line." }]
}'Or recall candidate memory refs without loading full payloads:
curl https://api.incord.ai/v1/memory/recall/index \
-H "Authorization: Bearer $INCORD_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "user_123",
"query": "recent architecture decisions",
"top_k": 5
}'Knowledge response (truncated):
{
"query": "latest bitcoin analysis",
"confidence": { "sufficient": true, "top_rerank_score": 0.94 },
"counts": { "finance": 5, "commerce": 0, "code": 0 },
"results": [
{
"id": "live:btc_multi_tf_analysis",
"content": "BTC multi-timeframe technical analysis ...",
"confidence": 0.95,
"domain": "finance",
"node_type": "snapshot",
"timestamp": 1718700000
}
],
"scope": "full_brain"
}Cloud AI — Manthan Model Routing (Beta, /v1/cloud)
Drop-in OpenAI shape across Anthropic, OpenAI, Google, Qwen, DeepSeek, and open models with smart cross-routing via Manthan (Beta). Point any OpenAI SDK at api.incord.ai/v1/cloud and set model to any id from /v1/cloud/models. Models are billed at market price with no markup from us; local Watchman is our main focus while the Cloud API is in beta. Browse models at /models.
/v1/cloud/modelsList every selectable model with live per-token pricing. Public — browsable without a key.
/v1/cloud/chat/completionsOpenAI Chat Completions with Manthan smart cross-routing. Body: { model, messages[], stream?, temperature?, max_tokens?, tools? }. SSE streaming with stream:true.
/v1/cloud/embeddingsOpenAI Embeddings across cloud embedding models. Body: { model, input }.
/v1/cloud/rerankCross-encoder rerank. Body: { query, documents[] }.
/v1/cloud/audio/voicesUpcoming hosted TTS voice catalog (Beta — local STT/TTS already runs free on your machine).
/v1/cloud/audio/speechHosted text-to-speech (Beta). Local TTS runs directly on your machine in Watchman today.
/v1/cloud/audio/transcriptionsHosted speech-to-text (Beta). Local STT runs directly on your machine in Watchman today.
/v1/cloud/video/generateText/image-to-video generation (Beta). Body: { model, prompt, … }. Poll GET /v1/cloud/video/prediction/{id} for the result.
/v1/cloud/batchesOpenAI-compatible Batch API (Beta). Upload with POST /v1/cloud/files, create a batch, poll GET /v1/cloud/batches/{id}.
/v1/cloud/usagePer-token usage ledger for this key/tenant.
Voice & OCR — Local-first today, Cloud in Beta (/v1/voice)
Watchman runs speech-to-text, text-to-speech, and OCR locally and free on your machine (our main focus). Hosted Cloud WebRTC voice (/v1/voice) is in beta for always-on Cloud boxes.
/v1/voice/voicesList selectable hosted voices (Beta).
/v1/voice/startStart a hosted call (Beta). Body: { agent_id }. Returns { call_id, webrtc_url }.
/v1/voice/stopEnd an active call. Body: { call_id }.
/v1/voice/byokBring-your-own-keys (Beta). Body: { openai?, deepgram?, cartesia? }. Stored encrypted per-tenant; GET returns { configured: [...] }.
Knowledge — Inveda Context (Beta)
The legacy /v1/search endpoint has been retired. Live market, news, on-chain, and web context is moving to Inveda inside Watchman (currently in beta); see /docs/inmem for local retrieval on port 9180.
/v1/memory/recall/indexLocal-first index recall in Watchman (127.0.0.1:9180) and hosted memory — returns matching refs without loading full payloads.
Memory — per-project & per-user memory (/v1/memory)
Watchman runs memory locally on your machine at 127.0.0.1:9180 with no per-call cost (see /docs/inmem). The hosted Cloud Memory endpoints below sync and store conversations plus the node/edge graph (Beta). Provision a key with POST /v1/memory/keys.
/v1/memory/keysProvision your memory key (once). Returns the key used for hosted calls.
/v1/memory/messagesIngest one chat message (redact → embed → store → wire into the graph). Bulk via POST /v1/memory/messages/batch. Body: { user_id, conv_id?, role, content, … }.
/v1/memory/searchUnified retrieval bundle: hybrid search + recent conversations + graph neighbors + timeline. Body: { user_id, query, top_k, conv_id?, since? }.
/v1/memory/recall/indexCheap recall — return candidate refs (no full content). Fetch the chosen ones with POST /v1/memory/recall/get; window a message with /v1/memory/recall/timeline.
/v1/memory/thinkLLM synthesis over recalled memory. Body: { user_id, query, top_k, conv_id?, since? }.
/v1/memory/conversationsList the user's conversations. GET /v1/memory/conversations/{id}/messages to read one; DELETE /v1/memory/conversations/{id} to remove it.
/v1/memory/graph/nodesUpsert a graph node. GET to list, GET/PATCH/DELETE /v1/memory/graph/nodes/{id}; traverse with POST /v1/memory/graph/query, relate with /v1/memory/graph/relate.
/v1/memory/code/syncIndex code chunks into memory. Body: code payload.
/v1/memory/storageStorage status: { used_bytes, used_gb, quota_gb, remaining_gb, tier }.
Agents — hosted agents (Beta, /v1/agent)
Long-running, tool-using agents on your private Cloud box (Beta; see /pricing for Local Free/Pro/Max and Cloud S/M/L plans). Watchman runs coding agents locally today while hosted Cloud boxes are in beta.
/v1/agent/agentsList your agents. POST /v1/agent/agents to spawn one. GET /v1/agent/agents/{id} to fetch, PATCH to update, DELETE to kill.
/v1/agent/agents/{id}/messageSend a message / trigger a run. Streaming variant: POST /v1/agent/agents/{id}/message/stream (SSE).
/v1/agent/agents/{id}/stopCancel the current run. Start/restart with /v1/agent/agents/{id}/start and /restart.
/v1/agent/agents/{id}/sessionsList/switch sessions; read artifacts (/v1/agent/agents/{id}/artifacts) and files (/…/files).
Account, Keys & Plans (Beta)
Create an account, mint API keys, and check Watchman Local + Cloud plans. Local Watchman (memory, voice, OCR, rules, guards, mobile) is free and unlimited during the beta; Cloud plans (S $39, M $79, L $159) are in beta.
/v1/auth/registerCreate an account { email, password }. Emails a 6-digit code; confirm at POST /v1/auth/verify-email. Also /v1/auth/google and /v1/auth/github.
/v1/auth/loginLog in { email, password } → session token.
/v1/keysCreate an API key { name }. GET to list, DELETE /v1/keys/{id} to revoke.
/v1/{service}/keysCreate a scoped key (service = cloud | memory | agents | voice). GET lists, DELETE /{id} revokes, POST /{id}/rotate rotates.
/v1/billing/plansPlan catalog + usage + subscriptions + prepaid balance.
/v1/billing/balancePrepaid balance (USD). POST /v1/billing/topup to add credit; POST /v1/billing/subscribe-service for a plan.
Use the OpenAI SDK
Because the Cloud AI API is OpenAI-shaped, you don't need our SDK — just point base_url at https://api.incord.ai/v1/cloud and use your key.
Python
from openai import OpenAI
client = OpenAI(api_key="$INCORD_KEY", base_url="https://api.incord.ai/v1/cloud")
# Chat — model = any id from /v1/cloud/models
chat = client.chat.completions.create(
model="claude-haiku-4-5",
messages=[{"role": "user", "content": "Summarize today's BTC move."}],
)
print(chat.choices[0].message.content)
# Embeddings
emb = client.embeddings.create(model="qwen3-embedding", input="hello world")
print(len(emb.data[0].embedding))JavaScript / TypeScript
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.INCORD_KEY, baseURL: "https://api.incord.ai/v1/cloud" });
const chat = await client.chat.completions.create({
model: "claude-haiku-4-5",
messages: [{ role: "user", content: "Summarize today's BTC move." }],
});
console.log(chat.choices[0].message.content);Connect via MCP
The Memory API speaks the Model Context Protocol, so any MCP-aware client (Claude Desktop, Cursor, Windsurf) can read and write your memory. Add this to your client's MCP config:
{
"mcpServers": {
"incord": {
"url": "https://api.incord.ai/v1/memory/mcp",
"headers": { "Authorization": "Bearer $INCORD_MEMORY_KEY" }
}
}
}For HTTP clients that prefer SSE, point the transport at https://api.incord.ai/v1/memory/mcp/sse. The same bearer token authenticates the JSON-RPC and the stream.
Set up with your AI
In a hurry? Paste the block below into Claude, ChatGPT, or Cursor — it has everything an AI assistant needs to wire Incord into your project for you.
You are setting up the Incord API in my project.
Base URL: https://api.incord.ai
Auth: every request needs the header Authorization: Bearer <INCORD_KEY>
My key is in the env var INCORD_KEY (ask me if it is missing).
Incord Cloud (Beta) is OpenAI-compatible for Manthan routing, so use the official OpenAI SDK
with base_url="https://api.incord.ai/v1/cloud". Key endpoints:
- Models (public): GET /v1/cloud/models
- Chat: POST /v1/cloud/chat/completions model = any id from /v1/cloud/models
- Embeddings: POST /v1/cloud/embeddings
- Memory recall: POST /v1/memory/recall/index body { user_id, query, top_k }
- Memory search: POST /v1/memory/search body { user_id, query, top_k }
Tasks:
1. Detect my stack (package.json / requirements.txt / go.mod).
2. Add the OpenAI client configured for base_url="https://api.incord.ai/v1/cloud", reading INCORD_KEY from env.
3. Add one working call to /v1/cloud/chat/completions and one to /v1/memory/recall/index.
4. Print how to run it. Do NOT hardcode the key; use the env var.Errors
- —
401 Unauthorized— missing or invalid API key. - —
402 Payment Required— over a free quota, or prepaid balance can't cover this metered call. Top up withPOST /v1/billing/topup. - —
403 Forbidden— email not verified. - —
422 Unprocessable Entity— the request body is missing required fields. - —
429 Too Many Requests— over your rate limit (free tier: 10/min, 500/day). See theRetry-Afterheader.