Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required
Minimum string length: 1
Example:

"agent_abc123"

Body

application/json
command
string
required
maxBuffer
number
timeout
number

Timeout in seconds. Runtime converts this to milliseconds.

Example:

30

workdir
string | null

Optional sandbox working directory.

Example:

"/home/user"

{key}
any

Response

Sandbox command result.

exitCode
number | null
required
handle
string
required
state
enum<string>
required
Available options:
running,
exited
stderr
string
required
stderrOffset
number
required
stdout
string
required
stdoutOffset
number
required