---
title: "Export execution artifacts"
method: POST
path: "/local-sandbox/{local_sandbox_id}/export-artifacts"
tags: ["local-sandbox"]
---

# Export execution artifacts

`POST /local-sandbox/{local_sandbox_id}/export-artifacts`

Zips the execution directory and uploads it to GCS. Returns a signed download URL for the exported artifacts.

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

## Request body

- ExportArtifactsRequest
  - `execution_name` string, required — Name of the execution whose artifacts to export

## Response `200`

Successful Response

- ExportArtifactsResponse
  - `download_url` string, required — Signed GCS URL to download the exported artifacts
  - `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)
