REST — /api/kg
5 route handlers under /api/kg · all session-gated.
Public flags are cross-referenced against
PUBLIC_API_PREFIXESinsrc/lib/route-access.ts. Routes without a public prefix require an authenticated session (or, where applicable, a signed federation request). See Auth models.
| Route | Methods | Access | Description |
|---|---|---|---|
/api/kg/chat | POST | Session | POST /api/kg/chat — Chat with scoped KG context |
/api/kg/docs | GET POST | Session | GET /api/kg/docs — List docs for a scope |
/api/kg/docs/[id]/push | POST | Session | POST /api/kg/docs/[id]/push — Push a resource's content into the KG for extraction |
/api/kg/entities | GET | Session | GET /api/kg/entities — List entities in a scope |
/api/kg/graph | GET POST | Session | POST /api/kg/graph — Query scoped KG subgraph |