V2 Get Memories
Get all memories
Mem0 offers two versions of the get memories API: v1 and v2. Here’s how they differ:
Key difference between v1 and v2 get memories:
• Filters: v2 allows you to apply filters to narrow down memory retrieval based on specific criteria. This includes support for complex logical operations (AND, OR) and comparison operators (IN, gte, lte, gt, lt, ne, icontains) for advanced filtering capabilities.
The v2 get memories API is more powerful and flexible, allowing for more precise memory retrieval without the need for a search query.
Authorizations
API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'
Query Parameters
Filters to apply to the memories. 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)
Filter memories by organization name. Will be deprecated soon, use org_id
instead.
Filter memories by project name. Will be deprecated soon, use project_id
instead.
Filter memories by organization ID.
Filter memories by project ID.
Page number for pagination. Default: 1
Number of items per page. Default: 100