Python
Memory Management
Create Memory Export
Submit an export job to create a structured memory export using a customizable Pydantic schema and filters.
POST
Python
Submit a job to create a structured export of memories using a customizable Pydantic schema. This process may take some time to complete, especially if you’re exporting a large number of memories. You can tailor the export by applying various filters (e.g.,
user_id, agent_id, app_id, or run_id) and by modifying the Pydantic schema to ensure the final data matches your exact needs.Authorizations
API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'
Body
application/json
Schema definition for the export
Filters to apply while exporting memories, using the structured AND/OR filter format (see /v2/memories/search/), e.g. {"AND": [{"user_id": "<user_id>"}]}. Available fields are: user_id, agent_id, app_id, run_id. Flat filter objects (e.g. {"user_id": "<user_id>"}) are rejected with a 400 error.
Filter exports by organization ID.
Filter exports by project ID.