Remotehost Docs

List a sandbox directory

GET
/sandboxes/{sandboxId}/files

Paths resolve beneath /code; the default is /code itself.

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

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

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