POST
/
v1
/
exports

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, run_id, or session_id) and by modifying the Pydantic schema to ensure the final data matches your exact needs.

Authorizations

Authorization
string
header
required

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

Body

application/json
schema
object
required

Schema definition for the export

app_id
string

Filter exports by app ID

org_id
string

Filter exports by organization ID

project_id
string

Filter exports by project ID

run_id
string

Filter exports by run ID

session_id
string

Filter exports by session ID

user_id
string

Filter exports by user ID

Response

201 - application/json
id
string
required
message
string
required