Skip to content

Exporting Memories Fresh

Export memories in structured formats for compliance, analytics, and backups.

Create Export

python
schema = {
    "type": "object",
    "properties": {
        "preference": {"type": "string"},
        "category": {"type": "string"},
        "confidence": {"type": "number"}
    }
}

export = client.create_export(
    schema=schema,
    filters={"user_id": "alice"}
)
print(f"Export ID: {export['id']}")

Retrieve Export

python
data = client.get_export(memory_export_id=export["id"])

Exports may take time for large memory sets. Poll the status until complete.

SOP Documentation Site for Mem0