curl --request POST \
--url https://api.klavis.ai/sandbox/mem0/{sandbox_id}/initialize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"memory_list": [
{
"message_list": [
{
"role": "user",
"content": "I prefer dark mode for all applications"
}
],
"user_id": "user_001",
"agent_id": "agent_assistant",
"app_id": "settings_app",
"run_id": "run_12345",
"auto_infer": true,
"background_processing": true,
"category_definitions": [
{
"ui_preferences": "Tracks user interface settings and visual preferences including themes, colors, and display options"
}
],
"metadata": {
"category": "preferences",
"tags": [
"ui",
"settings"
]
},
"version": "v2"
},
{
"message_list": [
{
"role": "user",
"content": "My favorite programming language is Python"
},
{
"role": "assistant",
"content": "I've noted that Python is your favorite programming language."
}
],
"user_id": "user_001",
"agent_id": "agent_assistant",
"app_id": "dev_app",
"run_id": "run_12346",
"auto_infer": true,
"background_processing": true,
"category_definitions": [
{
"technical_skills": "Tracks programming languages, frameworks, tools and technical expertise levels"
}
],
"metadata": {
"category": "preferences",
"tags": [
"programming",
"development"
]
},
"version": "v2"
},
{
"message_list": [
{
"role": "user",
"content": "I have a meeting every Monday at 9 AM"
}
],
"user_id": "user_001",
"agent_id": "agent_calendar",
"app_id": "calendar_app",
"run_id": "run_12347",
"auto_infer": true,
"background_processing": false,
"category_definitions": [
{
"schedule_management": "Tracks recurring events, meetings, appointments and time commitments"
}
],
"processing_instructions": "Store all calendar events with timezone information",
"metadata": {
"category": "schedule",
"tags": [
"calendar",
"recurring"
]
},
"version": "v2"
},
{
"message_list": [
{
"role": "user",
"content": "I'm working on a machine learning project using TensorFlow"
}
],
"user_id": "user_001",
"agent_id": "agent_assistant",
"app_id": "project_app",
"run_id": "run_12348",
"auto_infer": true,
"background_processing": true,
"include_preferences": "project details, technologies, status",
"category_definitions": [
{
"project_tracking": "Tracks active and past projects including technologies used, status, and objectives"
}
],
"metadata": {
"category": "projects",
"tags": [
"ml",
"tensorflow",
"current"
]
},
"version": "v2"
},
{
"message_list": [
{
"role": "user",
"content": "My email is [email protected]"
}
],
"user_id": "user_001",
"agent_id": "agent_assistant",
"app_id": "contact_app",
"run_id": "run_12349",
"auto_infer": false,
"background_processing": true,
"read_only": true,
"exclude_preferences": "temporary contact info",
"category_definitions": [
{
"contact_information": "Tracks permanent contact details including email, phone numbers, and social media handles"
}
],
"metadata": {
"category": "contact",
"tags": [
"email",
"personal"
]
},
"version": "v2"
}
]
}
EOF{
"sandbox_id": "<string>",
"status": "idle",
"message": "<string>",
"records_created": {}
}Initialize the sandbox with mem0-specific data following the defined schema.
curl --request POST \
--url https://api.klavis.ai/sandbox/mem0/{sandbox_id}/initialize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"memory_list": [
{
"message_list": [
{
"role": "user",
"content": "I prefer dark mode for all applications"
}
],
"user_id": "user_001",
"agent_id": "agent_assistant",
"app_id": "settings_app",
"run_id": "run_12345",
"auto_infer": true,
"background_processing": true,
"category_definitions": [
{
"ui_preferences": "Tracks user interface settings and visual preferences including themes, colors, and display options"
}
],
"metadata": {
"category": "preferences",
"tags": [
"ui",
"settings"
]
},
"version": "v2"
},
{
"message_list": [
{
"role": "user",
"content": "My favorite programming language is Python"
},
{
"role": "assistant",
"content": "I've noted that Python is your favorite programming language."
}
],
"user_id": "user_001",
"agent_id": "agent_assistant",
"app_id": "dev_app",
"run_id": "run_12346",
"auto_infer": true,
"background_processing": true,
"category_definitions": [
{
"technical_skills": "Tracks programming languages, frameworks, tools and technical expertise levels"
}
],
"metadata": {
"category": "preferences",
"tags": [
"programming",
"development"
]
},
"version": "v2"
},
{
"message_list": [
{
"role": "user",
"content": "I have a meeting every Monday at 9 AM"
}
],
"user_id": "user_001",
"agent_id": "agent_calendar",
"app_id": "calendar_app",
"run_id": "run_12347",
"auto_infer": true,
"background_processing": false,
"category_definitions": [
{
"schedule_management": "Tracks recurring events, meetings, appointments and time commitments"
}
],
"processing_instructions": "Store all calendar events with timezone information",
"metadata": {
"category": "schedule",
"tags": [
"calendar",
"recurring"
]
},
"version": "v2"
},
{
"message_list": [
{
"role": "user",
"content": "I'm working on a machine learning project using TensorFlow"
}
],
"user_id": "user_001",
"agent_id": "agent_assistant",
"app_id": "project_app",
"run_id": "run_12348",
"auto_infer": true,
"background_processing": true,
"include_preferences": "project details, technologies, status",
"category_definitions": [
{
"project_tracking": "Tracks active and past projects including technologies used, status, and objectives"
}
],
"metadata": {
"category": "projects",
"tags": [
"ml",
"tensorflow",
"current"
]
},
"version": "v2"
},
{
"message_list": [
{
"role": "user",
"content": "My email is [email protected]"
}
],
"user_id": "user_001",
"agent_id": "agent_assistant",
"app_id": "contact_app",
"run_id": "run_12349",
"auto_infer": false,
"background_processing": true,
"read_only": true,
"exclude_preferences": "temporary contact info",
"category_definitions": [
{
"contact_information": "Tracks permanent contact details including email, phone numbers, and social media handles"
}
],
"metadata": {
"category": "contact",
"tags": [
"email",
"personal"
]
},
"version": "v2"
}
]
}
EOF{
"sandbox_id": "<string>",
"status": "idle",
"message": "<string>",
"records_created": {}
}Your Klavis AI API key.
The unique sandbox identifier
If true, use default test data for initialization
Complete Mem0 sandbox data structure
List of memories
Show child attributes
Successful Response
Response model for sandbox initialization