Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
API ReferenceComputeSandboxes

Read a file from a sandbox

Streams the bytes of a regular file at the requested path inside a sandbox. A path that is not a regular file answers 400.

Required permission

Requires the sandboxes.read permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

Guided workflow: orl sandbox file read

orl sandbox file read <sandbox-id> <path>
GET
/v1/sandboxes/{sandboxId}/files/content

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

sandboxId*string

Query Parameters

path*string

An absolute path in the sandbox.

Response Body

The file's bytes

response?fileapplication/octet-stream
Formatbinary
Example Request
curl -X GET 'https://api.openrelay.inc/v1/sandboxes/string/files/content?path=string'
Example Response
"string"