POST
/
v1
/
exports
/
get
Python
# 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")

memory_export_id = "<memory_export_id>"

response = client.get_memory_export(memory_export_id=memory_export_id)
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'

Body

application/json
memory_export_id
string

The unique identifier of the memory export

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

Successful export

Export data response in a object format