Remotehost Docs

Read a directory tree

GET
/sandboxes/{sandboxId}/files/snapshot

Returns directory entries grouped by parent path. This is a filesystem listing, not a persistent sandbox backup. Requires a running Firecracker sandbox and sandbox.files.read.

Authorization

bearerAuth
AuthorizationBearer <token>

A RemoteHost API key (rh_sk_...) or a user session token.

In: header

Path Parameters

sandboxId*string

Query Parameters

path?string
depth?integer
Range1 <= value <= 5
Default3

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/sandboxes/string/files/snapshot"
{  "path": "string",  "truncated": true,  "directories": {    "property1": [      {        "label": "string",        "path": "string",        "type": "directory"      }    ],    "property2": [      {        "label": "string",        "path": "string",        "type": "directory"      }    ]  }}