Memory Management
Store Memories
Extract and store memories from conversation messages
POST
Store and process conversation messages to extract meaningful memories. MemSync will automatically analyze the conversation, extract facts, categorize them, and store them as searchable memories.
Authentication
API key for authentication
Request Body
Array of conversation messages between user and assistant
Identifier for the agent or application storing the memories
Unique identifier for the conversation thread
Source of the conversation data (e.g., “chat”, “email”, “sms”)
Additional metadata about the conversation
Response
Indicates if the memory storage was successful
Number of memories extracted and stored from the conversation
Time taken to process the conversation (e.g., “1.2s”)
Array of memory categories detected in the conversation
How Memory Extraction Works
When you store a conversation, MemSync performs several steps:- Context Analysis: Analyzes the full conversation to understand context and meaning
- Fact Extraction: Identifies meaningful facts and information about the user
- Memory Classification: Categorizes memories as semantic (lasting facts) or episodic (time-bound events)
- Category Assignment: Assigns memories to relevant categories (career, interests, etc.)
- Storage: Stores memories with vector embeddings for semantic search
Best Practices
Message Quality
- Include sufficient context in conversations for better memory extraction
- Use natural language rather than fragmented responses
- Include follow-up questions and clarifications when relevant
Conversation Structure
Metadata Usage
Include relevant metadata to enhance memory context:Rate Limiting
This endpoint has standard rate limiting:- 100 requests per minute per authenticated user
- Bulk processing may take longer for large conversations
- Consider implementing retry logic for high-volume applications
Error Codes
| Error Code | Description |
|---|---|
VALIDATION_ERROR | Invalid request format or missing required fields |
AUTHENTICATION_ERROR | Invalid or missing API key |
RATE_LIMIT_EXCEEDED | Too many requests in the time window |
PROCESSING_ERROR | Error occurred during memory extraction |
Next Steps
After storing memories, you can:Search Memories
Learn how to search for and retrieve stored memories
Get User Profile
View how memories contribute to the user’s profile
List Memories
Browse all stored memories for the user
Memory Categories
Learn about memory categorization

