in
: Matches any of the values specifiedgte
: Greater than or equal tolte
: Less than or equal togt
: Greater thanlt
: Less thanne
: Not equal toicontains
: Case-insensitive containment check*
: Wildcard character that matches everything
Authorizations
API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'
Body
The query to search for in the memory.
A dictionary of filters to apply to the search. Available fields are: user_id, agent_id, app_id, run_id, created_at, updated_at, categories, keywords. Supports logical operators (AND, OR) and comparison operators (in, gte, lte, gt, lt, ne, contains, icontains). For categories field, use 'contains' for partial matching (e.g., {"categories": {"contains": "finance"}}) or 'in' for exact matching (e.g., {"categories": {"in": ["personal_information"]}}).
The version of the memory to use. This should always be v2.
The number of top results to return.
A list of field names to include in the response. If not provided, all fields will be returned.
Whether to rerank the memories.
Whether to search for memories based on keywords.
Whether to filter the memories.
The minimum similarity threshold for returned results.
The unique identifier of the organization associated with the memory.
The unique identifier of the project associated with the memory.
Response
Successfully retrieved search results.
Unique identifier for the memory.
The content of the memory
The identifier of the user associated with this memory
The timestamp when the memory was created.
The timestamp when the memory was last updated.
Additional metadata associated with the memory
Categories associated with the memory
Whether the memory is immutable.
The date and time when the memory will expire. Format: YYYY-MM-DD.