Skip to main content
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

string
required
API key for authentication

Request Body

array
required
Array of conversation messages between user and assistant
string
required
Identifier for the agent or application storing the memories
string
required
Unique identifier for the conversation thread
string
required
Source of the conversation data (e.g., “chat”, “email”, “sms”)
object
Additional metadata about the conversation

Response

boolean
Indicates if the memory storage was successful
number
Number of memories extracted and stored from the conversation
string
Time taken to process the conversation (e.g., “1.2s”)
array
Array of memory categories detected in the conversation

How Memory Extraction Works

When you store a conversation, MemSync performs several steps:
  1. Context Analysis: Analyzes the full conversation to understand context and meaning
  2. Fact Extraction: Identifies meaningful facts and information about the user
  3. Memory Classification: Categorizes memories as semantic (lasting facts) or episodic (time-bound events)
  4. Category Assignment: Assigns memories to relevant categories (career, interests, etc.)
  5. 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

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