> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download a file from sandbox

> Downloads a file as binary content

Downloads a file as binary content

### Path parameters

<ParamField path="sandboxId" type="string (uuid)" required>
  Unique sandbox identifier
</ParamField>

### Query parameters

<ParamField query="path" type="string" required>
  Path to the file in the sandbox
</ParamField>

### Response

Returns `string (binary)`.

<Note>
  The spec this page is generated from declares this response as an untyped object — the server
  returns JSON, but its shape is not published. Read a live response to see the fields; treat any
  field you find as unversioned until the spec names it.
</Note>

### Status codes

| Code  | Meaning             |
| ----- | ------------------- |
| `200` | File binary content |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.sandbox.stateset.app/api/v1/sandbox/{sandboxId}/files/download' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  "string"
  ```
</ResponseExample>
