sandbox files

Download a sandbox file

Streams the raw bytes of one working-tree file from a running sandbox as an attachment. The bytes are read over the sandbox ACP connection, so the sandbox must be running with a live agent connection. Files above 100 MiB, protected files such as .env and opencode.json, and .git contents are refused.

get/api/public/v1/sandboxes/{sandboxId}/files/download

Request

  • Base URL: https://sparkles.dev
  • URL: https://sparkles.dev/api/public/v1/sandboxes/{sandboxId}/files/download
  • Auth: HTTP bearer

Path parameters

sandboxIdstring required

Query parameters

pathstring required
repostring

Response

The file bytes, delivered as an attachment

Changes

No recorded changes to this operation across all 1 revision of this API.