These v4 endpoints operate on extracted memories (not raw documents). SDK support coming soon — use fetch or cURL for now.For document management (list, get, update, delete), see Document Operations.
For ingesting raw content (text, files, URLs) through the processing pipeline, see Add Context.
Create Memories
Create memories directly without going through the document ingestion workflow. Memories are embedded and immediately searchable. This is useful for storing user preferences, traits, or any structured facts where you already know the exact memory content.- fetch
- cURL
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
memories | array | yes | Array of memory objects (1–100 items) |
memories[].content | string | yes | The memory text (max 10,000 chars). Should be entity-centric, e.g. “John prefers dark mode” |
memories[].isStatic | boolean | no | true for permanent identity traits (name, hometown). Defaults to false |
memories[].metadata | object | no | Key-value metadata (strings, numbers, booleans) |
containerTag | string | yes | Space / container tag these memories belong to |
Response
| Field | Type | Description |
|---|---|---|
documentId | string | null | ID of the lightweight source document created for traceability |
memories | array | The created memory entries |
memories[].id | string | Unique memory ID |
memories[].memory | string | The memory content |
memories[].isStatic | boolean | Whether this is a permanent trait |
memories[].createdAt | string | ISO 8601 timestamp |
Forget Memory
Soft-delete a memory — excluded from search results but preserved in the system. Use this when you might want to restore later.- fetch
- cURL
Update Memory (Versioned)
Update a memory by creating a new version. The original is preserved withisLatest=false.
- fetch
- cURL
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | * | Memory ID to update |
content | string | * | Original content to match (alternative to ID) |
newContent | string | yes | New content for the memory |
metadata | object | no | Updated metadata |
id or content must be provided.
Next Steps
- Document Operations — Manage documents (SDK supported)
- Search — Query your memories
- Ingesting Content — Add new content