Skip to main content
POST
http://localhost:3000
/
execute
/
stream
curl -N -X POST http://localhost:3000/execute/stream \
  -H "Authorization: Bearer $ISOL8_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request": {
      "runtime": "python",
      "code": "import time\nfor i in range(3):\n print(i)\n time.sleep(1)"
    }
  }'
data: {"type":"stdout","data":"0\n"}

data: {"type":"stdout","data":"1\n"}

data: {"type":"stdout","data":"2\n"}

data: {"type":"exit","data":"0"}
Streams execution events as SSE frames.
request
ExecutionRequest
required
Execution request with code and runtime.
options
Isol8Options
Optional execution options merged over defaults.
Streaming endpoint uses ephemeral execution lifecycle.
type
string
Event kind: stdout, stderr, exit, or error.
data
string
Event payload content.
curl -N -X POST http://localhost:3000/execute/stream \
  -H "Authorization: Bearer $ISOL8_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request": {
      "runtime": "python",
      "code": "import time\nfor i in range(3):\n print(i)\n time.sleep(1)"
    }
  }'
data: {"type":"stdout","data":"0\n"}

data: {"type":"stdout","data":"1\n"}

data: {"type":"stdout","data":"2\n"}

data: {"type":"exit","data":"0"}