API reference
Ordinary applications
Use the TypeScript runtime client from @cortexmemory/sdk/runtime. It submits/starts/observes retained backend runs, handles approvals/reconnect, reads canonical history and accesses governed recall/content/media/private assets. React applications use AI SDK 7 /remote.
Explicit memory and server administration
The root Cortex client exposes namespaced domain APIs. These are separate explicit memory/record operations and trusted maintenance surfaces, not a second model/tool loop or transcript writer for a runtime turn.
| Namespace | Reference |
|---|---|
memory | Memory |
conversations | Conversations |
facts | Facts |
users | Profiles and export/erasure |
memorySpaces | Spaces |
agents | Registry metadata |
contexts, a2a, sessions | Contexts, A2A, Sessions |
immutable, mutable | Versioned records, Mutable records |
governance | Policy administration |
artifacts, attachments | Artifact editing, Attachment records |
| Graph service exports | Graph operations |
Host JWT transport and deployment operator transport are distinct. Scope metadata/AuthContext is validated data, not authentication. Local orchestration compatibility requires explicit administrative server transport and fails closed for ordinary clients.
The reference method signatures below describe current TypeScript source; the installed package declarations define detailed parameter/result interfaces and overloads. Python remote-runtime parity is not provided.