Memories Endpoints

Create, retrieve, update, delete, and search memories. Memories are the core building block of Rekall, supporting all seven memory types with rich metadata and semantic embeddings.

Overview

The memories API provides full CRUD operations on memory records as well as semantic search. All memory types (episodic, semantic, procedural, long-term, short-term, execution, preferences) are managed through these endpoints.

MethodEndpointDescription
POST/v1/memoriesCreate a new memory
GET/v1/memoriesList memories
GET/v1/memories/:idGet a specific memory
PUT/v1/memories/:idUpdate a memory
DELETE/v1/memories/:idDelete a memory
POST/v1/memories/searchSemantic search over memories

Create Memory

List Memories

Get Memory

Update Memory

Delete Memory

Search Memories

Relevance scoring

The relevance field is a similarity score between 0 and 1, where 1 is an exact semantic match. Use min_relevance to filter out low-quality results. A threshold of 0.7 works well for most use cases.

Memory Object

The following table describes all fields in a memory object.

FieldTypeDescription
idstringUnique memory identifier (prefixed with mem_)
typestringMemory type: episodic, semantic, procedural, long_term, short_term, execution, preferences
contentstringThe memory content (1-50,000 characters)
contextstringMemory context: agent, user, hive, global
agent_idstringAssociated agent ID (if context is agent)
metadataobjectArbitrary key-value metadata (tags, importance, custom fields)
strengthnumberCurrent memory strength (0-1), affected by decay and access
access_countintegerNumber of times the memory has been accessed
created_atstringISO 8601 creation timestamp
updated_atstringISO 8601 last update timestamp
last_accessed_atstringISO 8601 timestamp of last access
Rekall
rekall