Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint. Include as Authorization: Bearer <token>.

Path Parameters

chatId
string<uuid>
required

Chat id.

Body

application/json
command
string
required

Command to run in the sandbox shell.

Maximum string length: 4096
cwd
string
default:/workspace

Working directory; must be /workspace or a path below it. Pass the cwd from the previous response to make cd carry over between commands.

Response

Command output.

output
string
required
cwd
string
required

Directory the shell ended in; send it as cwd on the next call to continue there.

truncated
boolean
required
exit_code
integer | null