POST
/
v1
/
exports
/
get
# To use the Python SDK, install the package:
# pip install mem0ai

from mem0 import MemoryClient

client = MemoryClient(api_key="your_api_key", org_id="your_org_id", project_id="project_id")

filters = {
    "AND": [
        {"created_at": {"gte": "2024-07-10", "lte": "2024-07-20"}},
        {"user_id": "alex"}
    ]
}

response = client.get_memory_export(filters=filters)
print(response)
{}

Retrieve the latest structured memory export after submitting an export job. You can filter the export by user_id, run_id, session_id, or app_id to get the most recent export matching your filters.

Authorizations

Authorization
string
header
required

API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'

Query Parameters

filters
object

Filters to apply while exporting memories. Available fields are: user_id, agent_id, app_id, run_id, created_at, updated_at.

org_id
string

Filter exports by organization ID

project_id
string

Filter exports by project ID

Response

200
application/json
Successful export

Export data response