health
health
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
API reference · brain v1
ceadr publishes JSON Schema for every brain response. Validate payloads, generate types, or wire your agent through MCP. The schemas are the source of truth. This page is the readable map.
Authentication
Every brain endpoint requires the workspace bearer token. The token appears in the URL path AND the Authorization header. Both must match. Mint a key on the deploy page for your workspace.
Required
Authorization: Bearer ceadr_xxxThe workspace bearer token.
Path: /api/brain/{token}/...Same token interpolated into the URL.
Optional agent identity
X-Agent-ID: my-support-botTags every query with this id. Per-agent stats appear on the feedback page.
X-Agent-Name: Support BotDisplay name shown alongside the id.
Endpoints
REST for one-shot queries, MCP for native agent integration via the mcp-remote shim, SSE for push notifications when your brain changes.
| Method | Path | Purpose |
|---|---|---|
| GET | /api/brain/{token}/health | Workspace health score, entity count, last activity |
| GET | /api/brain/{token}/query?q= | Ranked search hits with provenance |
| GET | /api/brain/{token}/facts | Known facts as typed entities |
| GET | /api/brain/{token}/policies | Policy entities |
| GET | /api/brain/{token}/playbooks | Playbook entities |
| GET | /api/brain/{token}/gaps | Coverage gaps and weak spots |
| GET | /api/brain/{token}/history | Recent ontology changes |
| POST | /api/brain/{token}/feedback | Record an agent feedback signal |
| GET | /api/brain/{token}/dashboard | Aggregated workspace dashboard payload |
| GET | /api/brain/{token}/stream | Server Sent Events stream of drift and contradiction events |
| GET | /api/brain/{token}/.well-known/schemas | Workspace scoped schema discovery manifest |
| GET | /mcp/{token} | Model Context Protocol surface for Claude Desktop, Cursor, and other MCP hosts |
Examples
Replace <TOKEN> with the bearer you minted on your workspace deploy page.
curl 'https://api.ceadr.ai/api/brain/<TOKEN>/query?q=what+is+the+pricing' \ -H 'Authorization: Bearer <TOKEN>' \ -H 'X-Agent-ID: my-support-bot'
{
"mcpServers": {
"ceadr-brain": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.ceadr.ai/mcp/<TOKEN>",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer <TOKEN>"
}
}
}
}Goes in claude_desktop_config.json. Works with the mcp-remote shim per the May 2026 MCP spec.
# Python (httpx-sse)
import httpx
from httpx_sse import connect_sse
with httpx.Client(timeout=None) as client:
headers = {"Authorization": "Bearer <TOKEN>"}
with connect_sse(client, "GET",
"https://api.ceadr.ai/api/brain/<TOKEN>/stream",
headers=headers) as events:
for ev in events.iter_sse():
print(ev.data)Schema reference
One section per published schema. Click the URL to fetch the raw JSON Schema and validate against it directly.
health
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
history
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
query
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
facts
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
policies
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
playbooks
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
gaps
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
disappeared
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
disappeared-action-request
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
disappeared-archive
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
disappeared-mark-expected
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
feedback-request
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
feedback-response
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
dashboard
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
weekly-report
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
well-known-schemas
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
audit-trail
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
contradictions
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
entity-trust
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
governance-summary
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
lineage
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
corrections
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
merge-events
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.
flag-contradiction
Properties not enumerated. Fetch the JSON Schema for the full definition including referenced sub-schemas.