> ## 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 microsoft_teams sandbox with data

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



## OpenAPI

````yaml post /sandbox/microsoft_teams/{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/microsoft_teams/{sandbox_id}/initialize:
    post:
      tags:
        - sandbox
      summary: Initialize microsoft_teams sandbox with data
      description: >-
        Initialize the sandbox with microsoft_teams-specific data following the
        defined schema.
      operationId: initialize_sandbox_sandbox_microsoft_teams__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/MsTeamsData-Input'
                - type: 'null'
              title: Request Body
            examples:
              default:
                summary: Example initialization data
                value:
                  team_channels:
                    - name: Engineering
                      channel_description: Channel for engineering team discussions
                      channel_messages:
                        - content: >-
                            Welcome to the Engineering channel! This is where we
                            discuss technical topics and share updates.
                        - content: >-
                            Reminder: Code review sessions every Tuesday at 10
                            AM
                        - content: >-
                            New deployment pipeline is ready for testing. Please
                            check the documentation in our wiki.
                    - name: Marketing
                      channel_description: Channel for marketing campaigns and strategies
                      channel_messages:
                        - content: Q4 campaign planning meeting scheduled for next week
                        - content: >-
                            Great job on the recent product launch! The social
                            media engagement exceeded our targets by 40%
                    - name: Project Alpha
                      channel_description: Dedicated channel for Project Alpha collaboration
                      channel_messages:
                        - content: >-
                            Project kickoff meeting notes:
                            https://docs.example.com/project-alpha/kickoff
                        - content: >-
                            Phase 1 milestone completed! Moving to Phase 2 next
                            sprint.
                        - content: >-
                            Updated timeline shared in the files tab. Please
                            review and provide feedback by EOW.
                  team_chats: []
      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:
    MsTeamsData-Input:
      properties:
        team_channels:
          anyOf:
            - items:
                $ref: '#/components/schemas/TeamsChannel'
              type: array
            - type: 'null'
          title: Team Channels
          description: List of team channels
        team_chats:
          anyOf:
            - items:
                $ref: '#/components/schemas/TeamsChat'
              type: array
            - type: 'null'
          title: Team Chats
          description: List of one-on-one chats
      type: object
      title: MsTeamsData
      description: Complete Microsoft Teams 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
    TeamsChannel:
      properties:
        channel_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel Id
          description: Channel ID (read-only, set by Teams)
        name:
          type: string
          title: Name
          description: Channel display name
        channel_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel Description
          description: Channel description
        channel_messages:
          anyOf:
            - items:
                $ref: '#/components/schemas/TeamsMessage'
              type: array
            - type: 'null'
          title: Channel Messages
          description: List of messages in the channel
      type: object
      required:
        - name
      title: TeamsChannel
      description: Teams Channel object
    TeamsChat:
      properties:
        chat_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Chat Id
          description: Chat ID (read-only, set by Teams)
        chat_members:
          anyOf:
            - items:
                $ref: '#/components/schemas/TeamsChatMember'
              type: array
            - type: 'null'
          title: Chat Members
          description: List of chat members
        chat_messages:
          anyOf:
            - items:
                $ref: '#/components/schemas/TeamsMessage'
              type: array
            - type: 'null'
          title: Chat Messages
          description: List of messages in the chat
      type: object
      title: TeamsChat
      description: Teams Chat 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
    TeamsMessage:
      properties:
        message_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Message Id
          description: Message ID (read-only, set by Teams)
        content:
          type: string
          title: Content
          description: Message content
      type: object
      required:
        - content
      title: TeamsMessage
      description: Teams Message object
    TeamsChatMember:
      properties:
        member_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Member Id
          description: Member ID (read-only, set by Teams)
        member_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Member Name
          description: Member display name
        member_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Member Email
          description: User email for creating chats
      type: object
      title: TeamsChatMember
      description: Teams Chat Member object
  securitySchemes:
    HTTPBearer:
      type: http
      description: Your Klavis AI API key.
      scheme: bearer
      x-fern-bearer:
        name: api_key

````