cURL
curl --request POST \ --url https://api.klavis.ai/sandbox/outlook_mail/{sandbox_id}/initialize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "messages": [ { "subject": "<string>", "id": "<string>", "body": {}, "from": {}, "to_recipients": [ "<string>" ], "cc_recipients": [ "<string>" ], "is_read": false, "received_date_time": "<string>" } ] } '
{ "sandbox_id": "<string>", "status": "idle", "message": "<string>", "records_created": {} }
Initialize the sandbox with outlook_mail-specific data following the defined schema.
Your Klavis AI API key.
The unique sandbox identifier
Complete Outlook Mail sandbox data structure
List of mail messages
Show child attributes
Email subject
Message ID (read-only, set by Outlook)
Email body with content and contentType
From address with emailAddress object
List of recipient email addresses
List of CC recipient email addresses
Whether the message has been read
Date and time the message was received
Successful Response
Response model for sandbox initialization
Sandbox identifier
Current status
idle
occupied
Initialization result message
Count of records created per object type