v37

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-11200148.2 KB
Stacks

Execute command in sandbox

Run a command in the sandbox container and get the output

post/v1/stacks/{id}/exec

Path parameters

idstring required

Stack identifier

Example:stk_abc123

Request body

commandstring[] required

Command to execute as array

Example request

{
  "command": [
    "curl",
    "-s",
    "https://example.com"
  ]
}

Response

Command execution result

stdoutstring required
stderrstring required
exitCodenumber required