API · BETA

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. 1.Create an account — POST /v1/auth/register with { email, password }, then confirm the 6-digit code at /v1/auth/verify-email.
  2. 2.Create an API key — POST /v1/keys with { "name": "my-app" }, or a scoped key with POST /v1/{service}/keys (cloud, memory, agents, voice).
  3. 3.Call the API — pass the key as a bearer token (below). Local Watchman runs on 127.0.0.1:9180 with 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.ai

GET /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.

GET/v1/cloud/models

List every selectable model with live per-token pricing. Public — browsable without a key.

POST/v1/cloud/chat/completions

OpenAI Chat Completions with Manthan smart cross-routing. Body: { model, messages[], stream?, temperature?, max_tokens?, tools? }. SSE streaming with stream:true.

POST/v1/cloud/embeddings

OpenAI Embeddings across cloud embedding models. Body: { model, input }.

POST/v1/cloud/rerank

Cross-encoder rerank. Body: { query, documents[] }.

GET/v1/cloud/audio/voices

Upcoming hosted TTS voice catalog (Beta — local STT/TTS already runs free on your machine).

POST/v1/cloud/audio/speech

Hosted text-to-speech (Beta). Local TTS runs directly on your machine in Watchman today.

POST/v1/cloud/audio/transcriptions

Hosted speech-to-text (Beta). Local STT runs directly on your machine in Watchman today.

POST/v1/cloud/video/generate

Text/image-to-video generation (Beta). Body: { model, prompt, … }. Poll GET /v1/cloud/video/prediction/{id} for the result.

POST/v1/cloud/batches

OpenAI-compatible Batch API (Beta). Upload with POST /v1/cloud/files, create a batch, poll GET /v1/cloud/batches/{id}.

GET/v1/cloud/usage

Per-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.

GET/v1/voice/voices

List selectable hosted voices (Beta).

POST/v1/voice/start

Start a hosted call (Beta). Body: { agent_id }. Returns { call_id, webrtc_url }.

POST/v1/voice/stop

End an active call. Body: { call_id }.

POST/v1/voice/byok

Bring-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.

POST/v1/memory/recall/index

Local-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.

POST/v1/memory/keys

Provision your memory key (once). Returns the key used for hosted calls.

POST/v1/memory/messages

Ingest one chat message (redact → embed → store → wire into the graph). Bulk via POST /v1/memory/messages/batch. Body: { user_id, conv_id?, role, content, … }.

POST/v1/memory/search

Unified retrieval bundle: hybrid search + recent conversations + graph neighbors + timeline. Body: { user_id, query, top_k, conv_id?, since? }.

POST/v1/memory/recall/index

Cheap 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.

POST/v1/memory/think

LLM synthesis over recalled memory. Body: { user_id, query, top_k, conv_id?, since? }.

GET/v1/memory/conversations

List the user's conversations. GET /v1/memory/conversations/{id}/messages to read one; DELETE /v1/memory/conversations/{id} to remove it.

POST/v1/memory/graph/nodes

Upsert 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.

POST/v1/memory/code/sync

Index code chunks into memory. Body: code payload.

GET/v1/memory/storage

Storage 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.

GET/v1/agent/agents

List your agents. POST /v1/agent/agents to spawn one. GET /v1/agent/agents/{id} to fetch, PATCH to update, DELETE to kill.

POST/v1/agent/agents/{id}/message

Send a message / trigger a run. Streaming variant: POST /v1/agent/agents/{id}/message/stream (SSE).

POST/v1/agent/agents/{id}/stop

Cancel the current run. Start/restart with /v1/agent/agents/{id}/start and /restart.

GET/v1/agent/agents/{id}/sessions

List/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.

POST/v1/auth/register

Create an account { email, password }. Emails a 6-digit code; confirm at POST /v1/auth/verify-email. Also /v1/auth/google and /v1/auth/github.

POST/v1/auth/login

Log in { email, password } → session token.

POST/v1/keys

Create an API key { name }. GET to list, DELETE /v1/keys/{id} to revoke.

POST/v1/{service}/keys

Create a scoped key (service = cloud | memory | agents | voice). GET lists, DELETE /{id} revokes, POST /{id}/rotate rotates.

GET/v1/billing/plans

Plan catalog + usage + subscriptions + prepaid balance.

GET/v1/billing/balance

Prepaid 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 with POST /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 the Retry-After header.