Stream run events
Returns server-sent events. Each data field contains a RunEvent object; event matches its type, and id identifies the event. Progress and tool events include a summary. Vulnerability events identify the vulnerability; status events identify the run’s state.
The connection replays retained events and then streams new ones. It closes after the run reaches stopped, completed, or failed. To reconnect, send the last received event ID in Last-Event-ID. Only later events are replayed. Reopen the stream after resuming or steering a completed run. An unknown event ID returns 400.
Every JSON payload has id, runId, type, summary, and createdAt. Additional fields depend on type:
| Type | Additional fields |
|---|---|
| progress | None |
| tool | None |
| vulnerability | vulnerabilityId |
| status | status: creating, running, stopped, completed, or failed |
| error | code |
The SDK exposes this stream through the Run object’s async iterator.
Authorizations
API key from your organization. Supply the value directly, without a Bearer prefix.
Headers
Resume after this event from the same run.
Path Parameters
Opaque resource identifier.
1Response
Successful response.
Server-sent events. JSON data conforms to the RunEvent schema.