Stream sandbox command

http
POST /sandboxes/{sandbox_id}/commands/stream

Stream a sandbox command. Requires project.sandboxes.manage.

Parameters

NameInRequiredDescription
sandbox_idpathYesSandbox UUID, as returned by createSandbox.

Request body

FieldTypeRequiredDescription
commandstringYes
cwdstring
timeout_secondsinteger
envobject

Responses

StatusDescription
200Upstream NDJSON command stream, preserved as sent by the sandbox: one event per line.
400Bad request
402Payment required
403Forbidden
404Not found
502Bad gateway
503Service unavailable