Skip to main content

Server-Sent Events stream of live scan logs.

GET 

/v1/scans/:scan_id/stream

Tails the scan's log buffer over text/event-stream. Three event types:

  • status — emitted once on connect; data is {"status": "..."}
  • log — emitted per log row; data is the row record (id, ts, level, agent, message)
  • done — emitted when the scan reaches a terminal status (completed/failed/cancelled); the stream then closes.

Each connection is capped at ~120s; clients should reconnect with ?since=<last_id> to resume after the previous final log event without dropping or duplicating rows.

Request

Responses

SSE stream.