Skip to main content
GET
Read a file or list a directory

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

sandbox_id
string
required

Sandbox ID (sb-…).

Required string length: 1 - 64

Query Parameters

path
string
required

Absolute path inside the sandbox, e.g. /app/out.txt, at most 4096 bytes in UTF-8.

Required string length: 1 - 4096
Pattern: ^/
list
boolean
default:false

List the directory at path instead.

page[number]
integer
default:1

Page number (1-based).

Required range: x >= 1
page[size]
integer
default:20

Number of items per page (max 100).

Required range: 1 <= x <= 100

Response

The file's bytes (application/octet-stream, with Content-Length; a shorter body was cut), or with list=true the directory listing (application/json).

A directory listing, paged.

data
object[]
required
meta
object
required

Pagination metadata for page-number lists (page[number] / page[size]).