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

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



## OpenAPI

````yaml post /sandbox/confluence/{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/confluence/{sandbox_id}/initialize:
    post:
      tags:
        - sandbox
      summary: Initialize confluence sandbox with data
      description: >-
        Initialize the sandbox with confluence-specific data following the
        defined schema.
      operationId: initialize_sandbox_sandbox_confluence__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/ConfluenceData-Input'
                - type: 'null'
              title: Request Body
            examples:
              default:
                summary: Example initialization data
                value:
                  spaces:
                    - identifier: TEAM
                      name: Team Space
                      description: Space for team collaboration
                      pages:
                        - title: Welcome to the Team
                          content: <p>This is the home page for our team.</p>
                          comments:
                            - content: <p>Great start!</p>
                          children:
                            - title: Project Alpha
                              content: >-
                                <h1>Project Alpha</h1><p>Details about the
                                project.</p>
                              comments:
                                - content: <p>Looking forward to this.</p>
                            - title: Meeting Notes
                              content: <p>Weekly meeting notes go here.</p>
                              children:
                                - title: 2023-10-27 Sync
                                  content: <p>Discussed Q4 goals.</p>
                    - identifier: DOCS
                      name: Documentation
                      description: Product documentation
                      pages:
                        - title: Getting Started
                          content: <p>How to use the product.</p>
      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:
    ConfluenceData-Input:
      properties:
        spaces:
          items:
            $ref: '#/components/schemas/ConfluenceSpace-Input'
          type: array
          title: Spaces
          description: List of spaces
      type: object
      title: ConfluenceData
      description: |-
        Complete Confluence sandbox data structure.

        Hierarchy:
        - Spaces contain Pages
        - Pages can have children (nested pages) and Comments
    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
    ConfluenceSpace-Input:
      properties:
        identifier:
          type: string
          title: Identifier
          description: Space identifier
        name:
          type: string
          title: Name
          description: Space name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Space description
        pages:
          anyOf:
            - items:
                $ref: '#/components/schemas/ConfluencePage-Input'
              type: array
            - type: 'null'
          title: Pages
          description: Root pages in this space
      type: object
      required:
        - identifier
        - name
      title: ConfluenceSpace
      description: Confluence Space 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
    ConfluencePage-Input:
      properties:
        title:
          type: string
          title: Title
          description: Page title
        content:
          type: string
          title: Content
          description: Page content
        children:
          anyOf:
            - items:
                $ref: '#/components/schemas/ConfluencePage-Input'
              type: array
            - type: 'null'
          title: Children
          description: Child pages
        comments:
          anyOf:
            - items:
                $ref: '#/components/schemas/ConfluenceComment-Input'
              type: array
            - type: 'null'
          title: Comments
          description: Comments on this page
      type: object
      required:
        - title
        - content
      title: ConfluencePage
      description: Confluence Page object
    ConfluenceComment-Input:
      properties:
        content:
          type: string
          title: Content
          description: Comment text content
      type: object
      required:
        - content
      title: ConfluenceComment
      description: Confluence Comment object
  securitySchemes:
    HTTPBearer:
      type: http
      description: Your Klavis AI API key.
      scheme: bearer
      x-fern-bearer:
        name: api_key

````