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

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



## OpenAPI

````yaml post /sandbox/google_drive/{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/google_drive/{sandbox_id}/initialize:
    post:
      tags:
        - sandbox
      summary: Initialize google_drive sandbox with data
      description: >-
        Initialize the sandbox with google_drive-specific data following the
        defined schema.
      operationId: initialize_sandbox_sandbox_google_drive__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/GoogleDriveData'
                - type: 'null'
              title: Request Body
            examples:
              default:
                summary: Example initialization data
                value:
                  files:
                    - name: Project Documents
                      mimeType: application/vnd.google-apps.folder
                      description: Main folder for project documentation
                    - name: Reports
                      mimeType: application/vnd.google-apps.folder
                      description: Quarterly and annual reports
                    - name: Project Plan
                      mimeType: application/vnd.google-apps.document
                      content: >-
                        # Project Plan


                        This is a comprehensive project plan document outlining
                        goals, milestones, and deliverables.
                      description: Main project planning document
                    - name: Meeting Notes
                      mimeType: application/vnd.google-apps.document
                      content: |-
                        # Meeting Notes

                        ## 2025-01-15 - Kickoff Meeting
                        - Discussed project scope
                        - Assigned team roles
                        - Set initial deadlines

                        ## 2025-02-01 - Progress Review
                        - Reviewed Q1 deliverables
                        - Adjusted timeline
                        - Budget discussion
                      description: Team meeting notes and action items
                    - name: Q1 Budget Report
                      mimeType: application/vnd.google-apps.document
                      content: |-
                        # Q1 Budget Report

                        ## Summary
                        Total Budget: $250,000
                        Spent: $180,000
                        Remaining: $70,000

                        ## Breakdown
                        - Personnel: $120,000
                        - Infrastructure: $40,000
                        - Marketing: $20,000
                      description: First quarter budget analysis
                    - name: Team Roster
                      mimeType: application/vnd.google-apps.spreadsheet
                      description: Complete team member directory
                    - name: Sales Dashboard 2025
                      mimeType: application/vnd.google-apps.spreadsheet
                      description: Real-time sales tracking and analytics
                    - name: Product Presentation
                      mimeType: application/vnd.google-apps.presentation
                      description: Quarterly product showcase slides
                    - name: README
                      mimeType: application/vnd.google-apps.document
                      content: >-
                        # Welcome to the Project Workspace


                        This Drive contains all project-related documents,
                        spreadsheets, and presentations.


                        ## Folder Structure

                        - Project Documents: Planning and documentation

                        - Reports: Quarterly reports and analytics


                        ## Getting Started

                        1. Review the Project Plan

                        2. Check Meeting Notes for latest updates

                        3. Access shared resources in respective folders
                    - name: Company Logo.png
                      mimeType: image/png
                      description: Official company logo file
      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:
    GoogleDriveData:
      properties:
        files:
          anyOf:
            - items:
                $ref: '#/components/schemas/GoogleDriveFile'
              type: array
            - type: 'null'
          title: Files
          description: List of Google Drive files and folders
      type: object
      title: GoogleDriveData
      description: Complete Google Drive 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
    GoogleDriveFile:
      properties:
        name:
          type: string
          minLength: 1
          title: Name
          description: Name of the file or folder (required)
        mimeType:
          type: string
          title: Mimetype
          description: >-
            MIME type of the file (required). Use
            'application/vnd.google-apps.folder' for folders
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Description of the file
        parents:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parents
          description: List of parent folder IDs
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
          description: Text content for Google Docs documents
      type: object
      required:
        - name
        - mimeType
      title: GoogleDriveFile
      description: Google Drive file or folder 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

````