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

# Download sandbox data

> Creates a `tar.gz` archive of the current workspace and provides a temporary download URL. Useful for saving your work or exporting the sandbox state.



## OpenAPI

````yaml get /local-sandbox/{local_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:
  /local-sandbox/{local_sandbox_id}/dump:
    get:
      tags:
        - local-sandbox
      summary: Download sandbox data
      description: >-
        Creates a `tar.gz` archive of the current workspace and provides a
        temporary download URL. Useful for saving your work or exporting the
        sandbox state.
      operationId: dump_local_sandbox_local_sandbox__local_sandbox_id__dump_get
      parameters:
        - name: local_sandbox_id
          in: path
          required: true
          schema:
            type: string
            description: The local sandbox identifier
            title: Local Sandbox Id
          description: The local sandbox identifier
        - name: region
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/GCSRegion'
            description: >-
              GCS bucket region for the download URL. Use 'asia' for users in
              China/Asia for faster downloads from a nearby bucket. Defaults to
              'us'.
            default: us
          description: >-
            GCS bucket region for the download URL. Use 'asia' for users in
            China/Asia for faster downloads from a nearby bucket. Defaults to
            'us'.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DumpUrlResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    GCSRegion:
      type: string
      enum:
        - us
        - asia
      title: GCSRegion
      description: |-
        Region hint for GCS upload/download bucket selection.

        Controls which GCS bucket is used for signed URLs so that users
        geographically closer to an edge bucket get faster transfers.
        The data is always pulled to the US GKE cluster over Google's
        private backbone after upload.
    DumpUrlResponse:
      properties:
        download_url:
          type: string
          title: Download Url
          description: Signed GCS URL to GET the tar.gz archive from
        expires_in_minutes:
          type: integer
          title: Expires In Minutes
          description: Minutes until the download URL expires
      type: object
      required:
        - download_url
        - expires_in_minutes
      title: DumpUrlResponse
      description: Response for the dump endpoint — returns a signed download URL.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````