Skip to main content

memory.getAll

Retrieves all memories for a specific user, ordered by creation date (newest first).

Parameters

userId
string
required
User identifier for memory isolation
limit
number
default:"100"
Maximum number of memories to return. Range: 1-1000.

Response

Returns an array of memory objects:
id
string
Memory UUID
content
string
Memory text content
userId
string
User identifier
clerkUserId
string
Tenant identifier
metadata
object
Custom metadata
createdAt
string
ISO 8601 timestamp
updatedAt
string
ISO 8601 timestamp

Examples

Use Cases

Display all memories for management:
Export user data for GDPR compliance:
Analyze memory patterns:

Search Memories

Find specific memories semantically

Delete Memory

Remove specific memories