---
title: "GET /v1/sandboxes/{id}/fs/read"
method: GET
path: "/v1/sandboxes/{id}/fs/read"
tags: ["Sandboxes"]
---

# GET /v1/sandboxes/{id}/fs/read

`GET /v1/sandboxes/{id}/fs/read`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/sandboxes/{id}/fs/read`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Query parameters

- `path` string, required

## Response `200`

File contents (base64)

- ReadFileResponse
  - `contents_b64` string, required: File contents, base64-encoded. Symmetric with `WriteFileBody`.
  - `path` string, required
  - `size` integer, required

## Other responses

- `400`: Validation error
- `404`: Sandbox or file not found

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/v1/sandboxes/:id/fs/read/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
