List a sandbox directory
Paths resolve beneath /code; the default is /code itself.
Authorization
bearerAuth A RemoteHost API key (rh_sk_...) or a user session token.
In: header
Path Parameters
Query Parameters
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" } ]}Run a command in a sandbox POST
Runs a non-interactive command through /bin/sh in /code and waits for it to exit. The sandbox must be running or ready. Standard output and error are each capped at 64 KiB; the tail is kept when either is truncated. The default timeout is 120 seconds. A non-zero exitCode is still a successful request: the command ran and failed. A command that hits the timeout returns timedOut true and exitCode 124.
Read a sandbox file GET
Returns the content as UTF-8, or as base64 for binary files, with its size in bytes. Relative paths resolve beneath /code.