Add Memories
Add memory messages to a project.
The types field in the request specifies which memory types to add to:
- If
typesis empty or not provided, memories are added to all types (episodic and semantic) - If
typesonly contains"episodic", memories are added only to Episodic memory - If
typesonly contains"semantic", memories are added only to Semantic memory - If
typescontains both, memories are added to both types
Each memory message represents a discrete piece of information to be stored in the project’s memory system. Messages can include content, metadata, timestamps, and other contextual details.
The producer field indicates who created the message, while the produced_for field specifies the intended recipient. These fields help provide context for the memory and if provided should be user-friendly names.
The endpoint accepts a batch of messages to be added in a single request.
Documentation Index
Fetch the complete documentation index at: https://docs.memmachine.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Specification model for adding memories.
A list of messages to be added (batch input). Must contain at least one message.
1The identifier of the project. If empty, the user's default project is used.
255^[\p{L}\p{N}_:-]*$A list of memory types to add (e.g., episodic, semantic). If empty, all available types are added.
Memory type.
semantic, episodic ["episodic", "semantic"]
Response
Successful Response
Response model for adding memories.
The list of results for each added memory message.

