API Reference
The HTTP API has 214 routes (including the SPA fallback GET *), all under /api/v1, served on 127.0.0.1:8787.
Conventions
- Auth:
Authorization: Bearer <Profile token>; host/origin guards in Auth & Security. Admin-only routes return 403 for members. - Error shape:
{ code, message, retryable }with the matching HTTP status;retryabletells the UI whether a direct retry is safe. - Idempotency: expensive POSTs (answers, scoring, rescore, …) accept an
Idempotency-Keyheader; replays return the first result. - SSE:
GET /sessions/:id/eventsandGET /runs/:id/eventsare event streams; reconnects resume by event sequence. - Profile binding: an
x-ifg-profileheader must match the token binding, else 403.
Sessions & reports (33)
| Method | Path | Purpose |
|---|---|---|
| POST | /assistant/chat | Director chat entry (streaming) |
| GET | /overview | home overview |
| GET | /sessions · /sessions/search | list / search |
| POST | /sessions | create session |
| GET | /sessions/:id · /sessions/:id/options | state / options |
| GET | /sessions/:id/events | SSE event stream |
| POST | /sessions/:id/answers · /hints · /code | answer / hint / code submit |
| POST | /sessions/:id/pause · /resume · /end | pause / resume / end |
| POST | /sessions/:id/retry | stream-break retry |
| PATCH | /sessions/:id/lock | lock / unlock |
| POST | /sessions/:id/archive · DELETE /sessions/:id/purge | archive / purge |
| GET/POST | /sessions/cleanup | cleanup preview / confirm (count must equal preview) |
| GET | /sessions/:id/report · /report.html · /report.pdf | report in three formats |
| POST | /sessions/:id/rescore | rescore (new version) |
| GET | /sessions/:id/versions · /versions/:version | version list / single version |
| GET | /sessions/:id/versions/:version/verify | hash + signature verification |
| POST | /sessions/:id/versions/:version/activate | activate a historical version |
| GET | /sessions/:id/versions/compare · /compare/:otherId | version / cross-session compare |
| POST | /sessions/:id/verify-citations | citation verification |
| GET | /sessions/:id/validation · /timeline | validation detail / timeline |
Knowledge base & topics (59)
| Method | Path | Purpose |
|---|---|---|
| GET | /kb/collections · /kb/search · /kb/refs/:id | collections / search / citation back-reference |
| POST | /kb/import · /kb/import-file · /kb/import-url · /kb/sync | three import channels / directory sync |
| GET | /kb/documents/:id/chunks · DELETE /kb/documents/:id | chunks / delete document |
| POST | /kb/reindex · GET /kb/reindex/status | background rebuild / progress |
| GET | /kb/topics · POST /kb/topics/rebuild | topic graph / rebuild |
| GET | /kb/topics/curate/preview · POST /kb/topics/curate | curation preview / apply |
| GET | /kb/topics/hierarchy/preview · POST /kb/topics/hierarchy | hierarchy preview / apply |
| GET | /kb/topics/proposals · POST /kb/topics/proposals/:id/decision | proposals / decision |
| POST | /kb/topics/merge · /kb/topics/merges/batch | single / batch merge |
| GET | /kb/topics/merges · /merges/recent · POST /merges/:id/undo · /merges/:id/decision | merge log / undo / decision |
| PATCH | /kb/topics/:id | edit topic |
| GET/POST | /kb/eval/sets · POST /kb/eval/golden · /kb/eval | eval sets / golden generation / run |
| GET/DELETE | /kb/eval/sets/:id · POST /kb/eval/sets/:id/run | set detail / delete / run |
| GET | /kb/audit · /kb/audit/export | shared audit / CSV |
| GET/POST | /kb/shared/documents · GET /kb/shared/documents/:id/chunks | shared documents / chunks |
| POST | /kb/shared/import-file · /kb/shared/sync · DELETE /kb/shared/documents/:id | shared import / sync / delete |
| GET | /kb/shared/versions · /documents/:id/history · /versions/:id/diff | versions / history / diff |
| POST | /kb/shared/versions/:id/restore | restore version |
| POST | /kb/shared/reindex · GET /kb/shared/reindex/status | shared rebuild / progress |
| GET | /kb/collections/:id/acl · PUT/DELETE /kb/collections/:id/acl/:profileId | ACL read / grant / revoke |
| POST | /kb/collections/:id/transfer | transfer ownership |
| GET/PUT | /settings/asr-glossary · /settings/budget · /settings/inbox | glossary / budget / inbox |
| GET | /review/wrong-book | wrong-book (threshold default 70) |
| POST | /sessions/:id/questions/:qid/coach | per-question coach follow-up |
Runs & capabilities (34)
| Method | Path | Purpose |
|---|---|---|
| POST | /runs · GET /runs/:id · /runs/:id/events | start run / state / SSE |
| POST | /runs/:id/cancel · /runs/:id/resume | cancel / resume |
| POST | /asr/transcribe · /asr/cer | transcription / character-error-rate eval |
| GET | /asr/bench · /asr/bench/last · PUT /asr/bench/last | ASR benchmark |
| GET | /sessions/:id/recordings · /recordings/:id/audio | recordings / audio |
| POST | /ocr · /vision/analyze | OCR / vision |
| GET/PUT | /settings/tts · /settings/pricing · POST /tts | TTS settings / pricing / synthesis |
| GET | /code/languages · /code/pool · /code/quota | sandbox languages / pool / quota |
| POST | /code/run · /code/quota/reset | run code / reset quota |
| GET | /models · /models/catalog | installed models / catalog |
| POST | /models · /models/:id/download · /models/:id/activate · /models/:id/pause · DELETE /models/:id | model lifecycle |
| POST | /models/catalog/:id/install | catalog install |
| GET | /embed/info · POST /embed | embed engine info / sync embed |
Providers & operations (22)
| Method | Path | Purpose |
|---|---|---|
| GET/POST | /providers · PUT/DELETE /providers/:id | provider CRUD |
| GET | /providers/:id/key-history · POST /providers/:id/probe | key rotation history / probe |
| PUT | /capability-routes/:key | edit route |
| POST | /eval/judge | judge calibration |
| GET | /usage · /egress | usage / egress ledger |
| GET/PUT | /settings/retention · POST /admin/retention/run | retention settings / run |
| GET | /admin/jobs · POST /admin/jobs/:id/retry · /admin/jobs/inbox · /admin/jobs/run | background jobs |
| POST | /admin/audit/export-job · GET /admin/exports · /admin/exports/:name | audit export job / artifacts |
| GET | /admin/audit · /admin/audit/export | system audit / CSV |
Resumes & memory (16)
| Method | Path | Purpose |
|---|---|---|
| GET/POST | /resumes · POST /resumes/import | resume list / import |
| POST | /resumes/:id/versions · PATCH /resumes/:id · POST /resumes/:id/activate | versions / edit / activate |
| GET | /resumes/current · /resumes/compare · /resumes/:id | current / compare / detail |
| GET | /memory · /memory/search | memory blocks / search |
| PATCH/DELETE | /memory/blocks/:id | core block edit / delete |
| POST | /memory/reflections · /memory/review/:id | reflection / complete review |
| GET | /heatmap | mastery heatmap |
Provenance (8)
| Method | Path | Purpose |
|---|---|---|
| GET | /lineage/calls · /lineage/claims · /lineage/stats | call ledger / claims / stats |
| GET | /lineage/graph · /lineage/search · /lineage/nodes/:id | graph / search / node |
| GET | /lineage/export · /llm-calls/:id | export / single-call raw text |
System, Profiles & MCP (35, incl. SPA fallback)
| Method | Path | Purpose |
|---|---|---|
| GET | /health · /bootstrap · /system/storage | health / bootstrap state / disk |
| GET/PUT | /admin/settings · GET /admin/runtime/info · POST /admin/runtime/probe | admin settings / runtime |
| GET/POST | /profiles · PATCH/DELETE /profiles/:id | Profile CRUD |
| POST | /profiles/:id/unlock · /profiles/:id/reset-pin · /onboarding | unlock / reset PIN / onboarding |
| GET | /profiles/:id/export · POST /profiles/:id/restore | backup / restore |
| GET | /auth/me · /auth/tokens | current identity / device list |
| POST | /auth/tokens/:jti/revoke · /auth/rotate · /auth/revoke | revoke one / rotate / revoke all |
| GET/POST | /mcp/servers · PATCH/DELETE /mcp/servers/:id | MCP server CRUD |
| PUT | /mcp/servers/:id/tools/:tool · POST /mcp/servers/:id/probe · /mcp/servers/:id/call | tool toggle / probe / call |
| GET | /approvals · POST /approvals/:id/approve · /approvals/:id/reject | MCP approvals |
| POST | /jd/analyze | JD gap analysis |
| GET | /web/snapshots · /web/snapshots/:id | web snapshots |
| GET | * | SPA fallback (not API) |