Skip to main content
POST
/
io.pocketenv.sandbox.exec
Execute a command in a sandbox.
curl --request POST \
  --url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.exec \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "command": "<string>"
}
'
{
  "stdout": "<string>",
  "stderr": "<string>",
  "exitCode": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.pocketenv.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json
command
string
required

The command to execute in the sandbox.

Response

OK

stdout
string

The output of the executed command.

stderr
string

The error output of the executed command, if any.

exitCode
integer