> ## Documentation Index
> Fetch the complete documentation index at: https://www.klavis.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Initialize outlook_mail sandbox with data

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



## OpenAPI

````yaml post /sandbox/outlook_mail/{sandbox_id}/initialize
openapi: 3.1.0
info:
  title: Klavis AI (https://www.klavis.ai)
  description: Klavis AI - Open Source MCP Integrations for AI Applications
  version: 0.1.0
servers:
  - url: https://api.klavis.ai
    description: US Production server
  - url: https://api.eu.klavis.ai
    description: EU Production server
security: []
paths:
  /sandbox/outlook_mail/{sandbox_id}/initialize:
    post:
      tags:
        - sandbox
      summary: Initialize outlook_mail sandbox with data
      description: >-
        Initialize the sandbox with outlook_mail-specific data following the
        defined schema.
      operationId: initialize_sandbox_sandbox_outlook_mail__sandbox_id__initialize_post
      parameters:
        - name: sandbox_id
          in: path
          required: true
          schema:
            type: string
            description: The unique sandbox identifier
            title: Sandbox Id
          description: The unique sandbox identifier
        - name: init_default_data
          in: query
          required: false
          schema:
            type: boolean
            description: If true, use default test data for initialization
            default: false
            title: Init Default Data
          description: If true, use default test data for initialization
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/OutlookMailData'
                - type: 'null'
              title: Request Body
            examples:
              default:
                summary: Example initialization data
                value:
                  messages:
                    - title: Welcome to the Team!
                      content:
                        contentType: HTML
                        content: >-
                          <p>Hi there!</p><p>Welcome to our team. We're excited
                          to have you on board. Please feel free to reach out if
                          you have any questions.</p><p>Best regards,<br>HR
                          Team</p>
                      to_addresses:
                        - newemployee@company.com
                      cc_addresses:
                        - hr@company.com
                        - manager@company.com
                    - title: Q4 Budget Review Meeting
                      content:
                        contentType: Text
                        content: >-
                          Hi,


                          This is a reminder about our Q4 budget review meeting
                          scheduled for next Tuesday at 2 PM. Please come
                          prepared with your department's spending reports.


                          Thanks,

                          Finance Team
                      to_addresses:
                        - team@company.com
                      cc_addresses:
                        - cfo@company.com
                    - title: Project Alpha - Status Update
                      content:
                        contentType: HTML
                        content: >-
                          <h3>Project Alpha Status Report</h3><p>Current Status:
                          <strong>On Track</strong></p><ul><li>Phase 1:
                          Completed</li><li>Phase 2: 75% complete</li><li>Phase
                          3: Planning</li></ul><p>Next milestone: December
                          15th</p>
                      to_addresses:
                        - projectteam@company.com
                        - stakeholders@company.com
                      cc_addresses: []
                    - title: 'Action Required: Security Policy Update'
                      content:
                        contentType: Text
                        content: >-
                          IMPORTANT: Please review and acknowledge the updated
                          security policy by end of week.


                          Key changes:

                          - Password complexity requirements

                          - 2FA mandatory for all accounts

                          - VPN usage guidelines


                          Click the link in your security portal to acknowledge.


                          IT Security Team
                      to_addresses:
                        - allstaff@company.com
                      cc_addresses:
                        - compliance@company.com
                        - legal@company.com
                    - title: Team Lunch - Friday 12:30 PM
                      content:
                        contentType: HTML
                        content: >-
                          <p>Hey team! </p><p>Let's grab lunch together this
                          Friday at 12:30 PM. I've made a reservation at the
                          Italian place downtown.</p><p>Please RSVP by Wednesday
                          so I can confirm the headcount.</p><p>Looking forward
                          to it!<br>Sarah</p>
                      to_addresses:
                        - dev-team@company.com
                      cc_addresses:
                        - sarah.manager@company.com
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InitializeSandboxResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    OutlookMailData:
      properties:
        messages:
          anyOf:
            - items:
                $ref: '#/components/schemas/OutlookMailMessage'
              type: array
            - type: 'null'
          title: Messages
          description: List of mail messages
      type: object
      title: OutlookMailData
      description: Complete Outlook Mail sandbox data structure
    InitializeSandboxResponse:
      properties:
        sandbox_id:
          type: string
          title: Sandbox Id
          description: Sandbox identifier
        status:
          $ref: '#/components/schemas/SandboxStatus'
          description: Current status
        message:
          type: string
          title: Message
          description: Initialization result message
      type: object
      required:
        - sandbox_id
        - status
        - message
      title: InitializeSandboxResponse
      description: Response model for sandbox initialization
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OutlookMailMessage:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: Message ID (read-only, set by Outlook)
        title:
          type: string
          title: Title
          description: Email subject
        content:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Content
          description: Email body with content and contentType
        from:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: From
          description: From address with emailAddress object
        to_addresses:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: To Addresses
          description: List of recipient email addresses
        cc_addresses:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cc Addresses
          description: List of CC recipient email addresses
        is_read:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Read
          description: Whether the message has been read
          default: false
        received_date_time:
          anyOf:
            - type: string
            - type: 'null'
          title: Received Date Time
          description: Date and time the message was received
      type: object
      required:
        - title
      title: OutlookMailMessage
      description: Outlook Mail Message object
    SandboxStatus:
      type: string
      enum:
        - idle
        - occupied
        - error
      title: SandboxStatus
      description: Status of a sandbox instance - matches database enum
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      description: Your Klavis AI API key.
      scheme: bearer
      x-fern-bearer:
        name: api_key

````