> ## 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.

# Export gmail sandbox data

> Export all data from the sandbox in the same format used for initialization.



## OpenAPI

````yaml get /sandbox/gmail/{sandbox_id}/dump
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/gmail/{sandbox_id}/dump:
    get:
      tags:
        - sandbox
      summary: Export gmail sandbox data
      description: >-
        Export all data from the sandbox in the same format used for
        initialization.
      operationId: dump_sandbox_sandbox_gmail__sandbox_id__dump_get
      parameters:
        - name: sandbox_id
          in: path
          required: true
          schema:
            type: string
            description: The unique sandbox identifier
            title: Sandbox Id
          description: The unique sandbox identifier
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DumpSandboxResponse_GmailData_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DumpSandboxResponse_GmailData_:
      properties:
        sandbox_id:
          type: string
          title: Sandbox Id
          description: Sandbox identifier
        server_name:
          $ref: '#/components/schemas/SandboxMCPServer'
          description: MCP server type
        dumped_at:
          type: string
          format: date-time
          title: Dumped At
          description: Timestamp of dump
        data:
          $ref: '#/components/schemas/GmailData'
          description: Dumped sandbox data in server-specific format
      type: object
      required:
        - sandbox_id
        - server_name
        - dumped_at
        - data
      title: DumpSandboxResponse[GmailData]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SandboxMCPServer:
      type: string
      enum:
        - jira
        - github
        - salesforce
        - hubspot
        - notion
        - airtable
        - linear
        - asana
        - google_sheets
        - google_drive
        - google_docs
        - gmail
        - google_calendar
        - google_forms
        - clickup
        - close
        - monday
        - motion
        - onedrive
        - microsoft_teams
        - outlook_mail
        - cal.com
        - quickbooks
        - moneybird
        - dropbox
        - shopify
        - woocommerce
        - outlook_calendar
        - resend
        - wordpress
        - mem0
        - supabase
        - slack
        - confluence
        - discord
        - snowflake
        - postgres
        - mongodb
        - youtube
        - googleworkspaceatlas
        - huggingface
        - mock_notion
        - arxiv_latex
        - calculator
        - clinicaltrialsgov
        - fetch
        - met_museum
        - open_library
        - osm
        - pubmed
        - us_weather
        - duckduckgo
        - whois
        - wikipedia
        - scholarly
        - howtocook
        - yahoo_finance
        - '12306'
        - youtube_transcript
        - weather
        - twelvedata
        - national_parks
        - lara_translate
        - e2b
        - context7
        - alchemy
        - weights_and_biases
        - oxylabs
        - google_maps
        - brave_search
        - exa
        - serper
      title: SandboxMCPServer
      description: Supported MCP servers for sandboxing
    GmailData:
      properties:
        messages:
          anyOf:
            - items:
                $ref: '#/components/schemas/GmailMessage'
              type: array
            - type: 'null'
          title: Messages
          description: List of Gmail messages to send
        drafts:
          anyOf:
            - items:
                $ref: '#/components/schemas/GmailDraft'
              type: array
            - type: 'null'
          title: Drafts
          description: List of Gmail drafts to create
      type: object
      title: GmailData
      description: Complete Gmail sandbox data structure with all supported objects
    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
    GmailMessage:
      properties:
        subject:
          type: string
          maxLength: 255
          title: Subject
          description: Email subject (required)
        to:
          type: string
          title: To
          description: Recipient email address (required)
        cc:
          anyOf:
            - type: string
            - type: 'null'
          title: Cc
          description: CC email addresses (comma-separated)
        bcc:
          anyOf:
            - type: string
            - type: 'null'
          title: Bcc
          description: BCC email addresses (comma-separated)
        body:
          type: string
          title: Body
          description: Email body content (required)
        from:
          anyOf:
            - type: string
            - type: 'null'
          title: From
          description: Sender email address (optional, defaults to authenticated user)
        reply_to:
          anyOf:
            - type: string
            - type: 'null'
          title: Reply To
          description: Reply-to email address
        labels:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Labels
          description: Gmail labels (e.g., INBOX, SENT, IMPORTANT)
      type: object
      required:
        - subject
        - to
        - body
      title: GmailMessage
      description: Gmail Message object with essential fields
    GmailDraft:
      properties:
        subject:
          type: string
          maxLength: 255
          title: Subject
          description: Draft subject (required)
        to:
          type: string
          title: To
          description: Recipient email address (required)
        cc:
          anyOf:
            - type: string
            - type: 'null'
          title: Cc
          description: CC email addresses (comma-separated)
        bcc:
          anyOf:
            - type: string
            - type: 'null'
          title: Bcc
          description: BCC email addresses (comma-separated)
        body:
          type: string
          title: Body
          description: Draft body content (required)
        from:
          anyOf:
            - type: string
            - type: 'null'
          title: From
          description: Sender email address (optional, defaults to authenticated user)
        reply_to:
          anyOf:
            - type: string
            - type: 'null'
          title: Reply To
          description: Reply-to email address
      type: object
      required:
        - subject
        - to
        - body
      title: GmailDraft
      description: Gmail Draft object with essential fields
  securitySchemes:
    HTTPBearer:
      type: http
      description: Your Klavis AI API key.
      scheme: bearer
      x-fern-bearer:
        name: api_key

````