Skip to content

Read a single guest file

GET/sandboxes/{id}/files

Returns the raw bytes of one guest file (?path), capped at ?max_bytes. Content only, guest → host; nothing is written host-side.

path parameters
object
idstringrequired

Sandbox ID, e.g. sbx_ab12cd34.

query parameters
object
pathstringrequired

Guest file path to read.

max_bytesinteger

Cap on bytes returned (default 10 MiB).

Responses
200 OKOK
stringbase64
400 Bad requestBad Request
ErrorResponse
errorstring
404 Not foundNot Found
ErrorResponse
errorstring
Authentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.
Request
GET/sandboxes/{id}/files
cURL
curl '/sandboxes/{id}/files?path=&max_bytes='
Response
200 OK
No response body.
Was this page helpful?