Run a command
POST /v1/sandboxes/{id}/exec
With stream: false (default) the response is a single ExecResult once the command
exits. With stream: true the response is application/x-ndjson, one ExecStreamEvent
per line, ending with an exit event.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Sandbox ids are lowercase: sbx_ followed by 16 characters from [a-z0-9]. Hostname labels derived from them are therefore safe to compare after lowercasing.
Request Body required
Section titled “Request Body required ”object
Run through /bin/sh -c
Argv, no shell
object
Responses
Section titled “ Responses ”Command finished, or stream of events
object
Output exceeded 10 MB and was cut
started carries exec_id. stdout and stderr carry base64 data. exit always carries exit_code, duration_ms, truncated and timed_out and ends the stream. error carries message and ends the stream.
object
Base64 for stdout and stderr
Not found
RFC 9457 problem document
object
https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).
Field-level validation errors
object
The resource is not in a state that allows this
RFC 9457 problem document
object
https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).
Field-level validation errors
object
The host reported an error
RFC 9457 problem document
object
https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).
Field-level validation errors
object
The host did not answer within the deadline
RFC 9457 problem document
object
https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).
Field-level validation errors