---
title: "Download sandbox data"
method: GET
path: "/local-sandbox/{local_sandbox_id}/dump"
tags: ["local-sandbox"]
---

# Download sandbox data

`GET /local-sandbox/{local_sandbox_id}/dump`

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.

## Path parameters

- `local_sandbox_id` string, required — The local sandbox identifier

## Query parameters

- `region` 'us' | 'asia' — 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.

## Response `200`

Successful Response

- DumpUrlResponse — Response for the dump endpoint — returns a signed download URL.
  - `download_url` string, required — Signed GCS URL to GET the tar.gz archive from
  - `expires_in_minutes` integer, required — Minutes until the download URL expires

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai.md) · [All operations](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/klavis-ai/klavis-ai-https-www-klavis-ai/revisions/1f05ced7280f/schema)
