Skip to main content
POST
Exec

Authorizations

Authorization
string
header
default:Bearer {API_ACCESS_TOKEN}
required

CoreWeave API access token sent as a bearer token.

Path Parameters

sandboxId
string
required

Body

application/json
sandboxId
string
required
command
string[]
required
env
object
maxOutputBytes
integer<int32>

Cap on buffered output per stream; output beyond this is truncated (see ExecResponse.*_truncated). 0 = platform default.

container
string

Target container name. Empty = the primary. Unknown names and platform sidecar names are INVALID_ARGUMENT (CWSANDBOX_INVALID_REQUEST). In a CONTROL_CONTAINER_ENGINE sandbox, cws-engine is the only container and the primary.

Response

OK

stdout
string<bytes>
stderr
string<bytes>
exitCode
integer<int32>
stdoutTruncated
boolean
stderrTruncated
boolean
stdoutBytesProduced
string

Total bytes the process wrote to stdout, even when stdout was truncated.

stderrBytesProduced
string

Total bytes the process wrote to stderr, even when stderr was truncated.