curl --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/executions/{executionId}/stream' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
"string"
Stream execution output via SSE
Server-sent event stream. Events carry JSON payloads: {type: 'stdout'|'stderr', data}, {type: 'truncated', output_truncated: true}, {type: 'error', error,…
GET
/
api
/
v1
/
sandbox
/
{id}
/
executions
/
{executionId}
/
stream
curl --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/executions/{executionId}/stream' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
"string"
Path parameters
string (uuid)
required
Sandbox identifier
string
required
Execution identifier
Response
Returnstext/event-stream — Server-sent event stream. Events carry JSON payloads: {type: 'stdout'|'stderr', data}, {type: 'truncated', output_truncated: true}, {type: 'error', error, code?}, {type: 'exit', code, output_truncated?}, then {type: 'done'}. Each event has an SSE id (<executionId> plus a sequence number); send it as Last-Event-ID (header or last_event_id query parameter) to resume after the last event you saw. : heartbeat comments are written every 20s while the execution runs. Completed executions replay a synthesized terminal sequence.
Status codes
| Code | Meaning | |
|---|---|---|
200 | Server-sent event stream. Events carry JSON payloads: `{type: ‘stdout' | 'stderr’, data}, {type: ‘truncated’, output_truncated: true}, {type: ‘error’, error, code?}, {type: ‘exit’, code, output_truncated?}, then {type: ‘done’}. Each event has an SSE id (<executionId>plus a sequence number); send it asLast-Event-ID(header orlast_event_idquery parameter) to resume after the last event you saw.: heartbeat` comments are written every 20s while the execution runs. Completed executions replay a synthesized terminal sequence. |
curl --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/executions/{executionId}/stream' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
"string"
Last modified on August 31, 2026