---
title: "Read File"
method: GET
path: "/v1/sandboxes/{sandbox_id}/files"
tags: ["V1 - Sandboxes"]
---

# Read File

`GET /v1/sandboxes/{sandbox_id}/files`

## Request

- Base URL: `https://api.app.noxus.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.app.noxus.ai/v1/sandboxes/{sandbox_id}/files`
- Auth: API key in header `X-API-Key`

Read a file out of the sandbox.

Binary files should be fetched with ``encoding=base64``; utf-8 reads of
non-text content are rejected rather than silently mangled.

## Path parameters

- `sandbox_id` string, required

## Query parameters

- `path` string, required
- `encoding` string

## Response `200`

Successful Response

- ReadFileOut
  - `path` string, required
  - `content` string, required
  - `encoding` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/noxus/apis/noxus-backend.md) - [All operations](https://skmtc.dev/noxus/apis/noxus-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/noxus/apis/noxus-backend/revisions/0e37810b7ad5?raw)
