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

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



## OpenAPI

````yaml post /sandbox/google_calendar/{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_calendar/{sandbox_id}/initialize:
    post:
      tags:
        - sandbox
      summary: Initialize google_calendar sandbox with data
      description: >-
        Initialize the sandbox with google_calendar-specific data following the
        defined schema.
      operationId: initialize_sandbox_sandbox_google_calendar__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/GoogleCalendarData-Input'
                - type: 'null'
              title: Request Body
            examples:
              default:
                summary: Example initialization data
                value:
                  events:
                    - title: Team Standup
                      description: >-
                        Daily team standup meeting to discuss progress and
                        blockers
                      startTime: '2025-12-01T09:00:00-08:00'
                      endTime: '2025-12-01T09:30:00-08:00'
                      timezone: America/Los_Angeles
                      attendees:
                        - email: team@example.com
                    - title: Client Meeting - Q4 Review
                      description: Quarterly business review with key client stakeholders
                      location: Conference Room A
                      startTime: '2025-12-02T14:00:00-08:00'
                      endTime: '2025-12-02T15:30:00-08:00'
                      timezone: America/Los_Angeles
                      attendees:
                        - email: client@example.com
                        - email: sales@example.com
                      visibility: private
                    - title: Project Planning Session
                      description: Q1 2026 project planning and resource allocation
                      location: Main Office - Building 2
                      startTime: '2025-12-03T10:00:00-08:00'
                      endTime: '2025-12-03T12:00:00-08:00'
                      timezone: America/Los_Angeles
                      attendees:
                        - email: team@example.com
                        - email: manager@example.com
                        - email: product@example.com
                          isOptional: true
                    - title: One-on-One with Manager
                      description: Monthly check-in and career development discussion
                      startTime: '2025-12-05T15:00:00-08:00'
                      endTime: '2025-12-05T15:30:00-08:00'
                      timezone: America/Los_Angeles
                      attendees:
                        - email: manager@example.com
                      visibility: private
                    - title: Team Lunch
                      description: Team building lunch and informal catch-up
                      location: Restaurant Downtown
                      startTime: '2025-12-07T12:00:00-08:00'
                      endTime: '2025-12-07T13:30:00-08:00'
                      timezone: America/Los_Angeles
                      attendees:
                        - email: team@example.com
                    - title: All-Day Company Offsite
                      description: Annual company offsite for strategic planning
                      location: Retreat Center
                      startDate: '2025-12-10'
                      endDate: '2025-12-11'
                      attendees:
                        - email: everyone@example.com
                    - title: Product Demo Webinar
                      description: Public webinar showcasing new product features
                      startTime: '2025-12-12T11:00:00-08:00'
                      endTime: '2025-12-12T12:00:00-08:00'
                      timezone: America/Los_Angeles
                      attendees:
                        - email: marketing@example.com
                        - email: product@example.com
                      visibility: public
                    - title: Sprint Retrospective
                      description: Reflect on the sprint and identify improvements
                      startTime: '2025-12-13T16:00:00-08:00'
                      endTime: '2025-12-13T17:00:00-08:00'
                      timezone: America/Los_Angeles
                      attendees:
                        - email: team@example.com
                        - email: scrum-master@example.com
                    - title: Budget Review - Finance
                      description: Q4 budget review and variance analysis
                      location: Finance Conference Room
                      startTime: '2025-12-15T13:00:00-08:00'
                      endTime: '2025-12-15T14:30:00-08:00'
                      timezone: America/Los_Angeles
                      attendees:
                        - email: finance@example.com
                        - email: manager@example.com
                      visibility: confidential
                    - title: Holiday Party Planning
                      description: Planning meeting for the annual holiday celebration
                      startTime: '2025-12-18T14:00:00-08:00'
                      endTime: '2025-12-18T15:00:00-08:00'
                      timezone: America/Los_Angeles
                      attendees:
                        - email: events@example.com
                        - email: hr@example.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:
    GoogleCalendarData-Input:
      properties:
        events:
          anyOf:
            - items:
                $ref: '#/components/schemas/GoogleCalendarEvent'
              type: array
            - type: 'null'
          title: Events
          description: List of Google Calendar events
      type: object
      title: GoogleCalendarData
      description: Complete Google Calendar 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
    GoogleCalendarEvent:
      properties:
        title:
          type: string
          minLength: 1
          title: Title
          description: Event title/summary (required)
        startTime:
          anyOf:
            - type: string
            - type: 'null'
          title: Starttime
          description: RFC3339 timestamp for timed events (e.g., 2025-12-01T09:00:00-07:00)
        endTime:
          anyOf:
            - type: string
            - type: 'null'
          title: Endtime
          description: RFC3339 timestamp for timed events
        startDate:
          anyOf:
            - type: string
            - type: 'null'
          title: Startdate
          description: All-day event start date in YYYY-MM-DD format
        endDate:
          anyOf:
            - type: string
            - type: 'null'
          title: Enddate
          description: All-day event end date in YYYY-MM-DD format
        timezone:
          anyOf:
            - type: string
            - type: 'null'
          title: Timezone
          description: IANA timezone (e.g., America/Los_Angeles)
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Event description
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
          description: Event location
        visibility:
          anyOf:
            - type: string
            - type: 'null'
          title: Visibility
          description: Visibility (default, public, private, confidential)
        recurrence:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Recurrence
          description: Recurrence rules (RRULE format)
        attendees:
          anyOf:
            - items:
                $ref: '#/components/schemas/GoogleCalendarAttendee'
              type: array
            - type: 'null'
          title: Attendees
          description: List of event attendees
      type: object
      required:
        - title
      title: GoogleCalendarEvent
      description: Google Calendar event 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
    GoogleCalendarAttendee:
      properties:
        email:
          type: string
          format: email
          title: Email
          description: Attendee email address (required)
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Attendee display name
        isOptional:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Isoptional
          description: Whether attendance is optional
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
          description: Attendee's response comment
        accepted:
          anyOf:
            - $ref: '#/components/schemas/AttendeeResponseStatus'
            - type: 'null'
          description: Response status
      type: object
      required:
        - email
      title: GoogleCalendarAttendee
      description: Google Calendar event attendee
    AttendeeResponseStatus:
      type: string
      enum:
        - needsAction
        - declined
        - tentative
        - accepted
      title: AttendeeResponseStatus
      description: Attendee response status for calendar events
  securitySchemes:
    HTTPBearer:
      type: http
      description: Your Klavis AI API key.
      scheme: bearer
      x-fern-bearer:
        name: api_key

````