v4

latestOpenAPI 3.1.02026-07-31155218294.8 KB
Sandboxes

Exec Command

Run a command in the sandbox. Streams NDJSON lines (application/x-ndjson): {"stdout": ...}/{"stderr": ...} chunks followed by exactly one terminal {"returncode": N} or {"error": msg} line.

post/v1/sandboxes/{sandbox_id}/exec

Path parameters

sandbox_idstring required

Headers

xi-api-keystring nullable
x-api-keystring nullable

Request body

commandstring[] required
timeout_secondsinteger

Response

Successful Response

{"stackTrail":"paths:/v1/sandboxes/{sandbox_id}/exec:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}