Try it
button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.Sample Request
Overview
Store personal memories for a specific user to enhance personalization and provide context-aware responses in your AI applications.What are User Memories?
User memories are personal, contextual information stored for individual users that help your AI system:- Remember user preferences and past interactions
- Provide personalized responses based on user history
- Enhance user experience through adaptive behavior
Functionality
- Manual Memory Addition: Allows you to explicitly add specific memories for a user
- Vector Store Integration: Stores memories in a searchable vector database for semantic retrieval
- Tenant Isolation: Ensures memories are properly isolated by tenant and sub-tenant
- Automatic Provisioning: If the tenant/sub-tenant combination doesn’t exist for user memory, it will be automatically provisioned on first use
Use Cases
- Preference Storage: Store user preferences like preferred communication style, timezone, or language
- Context Preservation: Remember important details from previous conversations
- Personalization Data: Store information that helps tailor responses to individual users
Important Notes
- Use clear, descriptive memory content that will be useful for future AI interactions
- Consider the context in which memories will be retrieved
- Avoid storing sensitive information unless necessary
- Use consistent formatting for similar types of memories
Error Responses
All endpoints return consistent error responses following the standard format. For detailed error information, see our Error Responses documentation.Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Unique identifier for the tenant/organization
"tenant_1234"
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
"sub_tenant_4567"
Body
Request body containing the user memory to add
The memory content to store for future reference
"I prefer detailed technical explanations and works in the Pacific timezone"
Response
Successful Response
Response model for adding a new user memory.
Indicates whether the memory addition operation was successful
true
Confirms whether the memory was successfully stored in the system
true
Unique identifier assigned to the newly created memory
"memory_1234"