Skip to main content

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.

NamespaceReference
memoryMemory
conversationsConversations
factsFacts
usersProfiles and export/erasure
memorySpacesSpaces
agentsRegistry metadata
contexts, a2a, sessionsContexts, A2A, Sessions
immutable, mutableVersioned records, Mutable records
governancePolicy administration
artifacts, attachmentsArtifact editing, Attachment records
Graph service exportsGraph 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.