curl -X POST https://api.runtools.ai/v1/sandboxes/sandbox-abc123/exec \ -H "X-API-Key: rt_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "command": "npm run build", "timeout": 60000, "cwd": "/workspace" }'
{ "data": { "stdout": "Build completed successfully\n", "stderr": "", "exitCode": 0, "executionTime": 2341 } }
Execute a command in a sandbox