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
headerrequired

API 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
required
name
string
required
created_at
string
required
updated_at
string
required
total_memories
integer
required
owner
string
required
organization
string
required
metadata
object
type
enum<string>
required
Available options:
user,
agent,
app,
run