Memory APIs
V2 Get Memories
Get all memories
POST
/
v2
/
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
Authorization
string
headerrequiredAPI key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'
Query Parameters
filters
object
Filters to apply to the memories
org_name
string
Filter memories by organization name
project_name
string
Filter memories by project name
Response
200 - application/json
id
string
requiredname
string
requiredcreated_at
string
requiredupdated_at
string
requiredtotal_memories
integer
requiredowner
string
requiredorganization
string
requiredmetadata
object
type
enum<string>
requiredAvailable options:
user
, agent
, app
, run