memory.add
Saves a new memory with automatic embedding generation for semantic search.
Parameters
string
required
User identifier for memory isolation. Must be a stable, unique ID for each user.
string
required
The text content to save. Should be a complete, self-contained statement.
object
Optional metadata for categorization and filtering.
Response
string
required
Unique identifier (UUID) for the memory
string
required
The saved text content
string
required
User identifier
string
required
Tenant identifier (API key owner)
object
Custom metadata object
string
required
ISO 8601 timestamp of creation
string
required
ISO 8601 timestamp of last update
Examples
Embedding Generation
When you save a memory, Satori automatically:- Sends the content to OpenAI’s
text-embedding-3-smallmodel - Receives a 1536-dimensional vector
- Stores both the text and embedding in PostgreSQL
Embedding generation typically takes 50-100ms. The API call returns after the memory is fully saved with its embedding.
Best Practices
Write complete, self-contained memories
Write complete, self-contained memories
Use metadata for organization
Use metadata for organization
Avoid duplicate memories
Avoid duplicate memories
Error Handling
Related Endpoints
Search Memories
Find relevant memories using semantic search
Get All Memories
Retrieve all memories for a user
Delete Memory
Remove a specific memory
Integration Guide
See this endpoint in action