---
title: "Initialize outlook_mail sandbox with data"
method: POST
path: "/sandbox/outlook_mail/{sandbox_id}/initialize"
tags: ["sandbox"]
---

# Initialize outlook_mail sandbox with data

`POST /sandbox/outlook_mail/{sandbox_id}/initialize`

Initialize the sandbox with outlook_mail-specific data following the defined schema.

## Path parameters

- `sandbox_id` string, required — The unique sandbox identifier

## Query parameters

- `init_default_data` boolean — If true, use default test data for initialization

## Request body

- OutlookMailData — Complete Outlook Mail sandbox data structure
  - `messages` OutlookMailMessage[], nullable — List of mail messages
    - `id` string, nullable — Message ID (read-only, set by Outlook)
    - `title` string, required — Email subject
    - `content` object, nullable — Email body with content and contentType
    - `from` object, nullable — From address with emailAddress object
    - `to_addresses` string[], nullable — List of recipient email addresses
    - `cc_addresses` string[], nullable — List of CC recipient email addresses
    - `is_read` boolean, nullable — Whether the message has been read
    - `received_date_time` string, nullable — Date and time the message was received

## Response `200`

Successful Response

- InitializeSandboxResponse — Response model for sandbox initialization
  - `sandbox_id` string, required — Sandbox identifier
  - `status` 'idle' | 'occupied' | 'error', required — Status of a sandbox instance - matches database enum
  - `message` string, required — Initialization result message

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai.md) · [All operations](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/klavis-ai/klavis-ai-https-www-klavis-ai/revisions/1f05ced7280f/schema)
