---
title: "Download a sandbox file"
method: GET
path: "/api/v2/sandboxes/{sandbox_id}/download"
tags: ["sandboxes"]
---

# Download a sandbox file

`GET /api/v2/sandboxes/{sandbox_id}/download`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v2/sandboxes/{sandbox_id}/download`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Download file contents from a sandbox filesystem path. Supports HTTP range requests: send a Range header (for example `bytes=0-1023`) to receive a 206 with only that byte range. Every response carries an ETag; send it back as If-Range to resume safely (a changed file returns 200 with the whole file instead of mismatched bytes) or as If-None-Match to get a 304 when the file is unchanged. HEAD returns the same headers, including the file's size in Content-Length, without the body.

## Path parameters

- `sandbox_id` string, required

## Query parameters

- `path` string, required

## Headers

- `Range` string

## Response `200`

File content

## Other responses

- `206`: Partial file content
- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `416`: Requested range not satisfiable

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/sandboxes/:sandbox_id/download/get.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/28621d1a347a?raw)
