Stream run events
Opens a server-sent event stream of one run’s live events, the way cliq run shows
progress. Pass the run id (not the name) in the run_id query parameter.
From the CLI: cliq run.
No credential is needed from this machine. From another host, send Authorization: Bearer with a dispatch token CliqHub signed for this daemon or a cliq_tok_… personal token of a user in the daemon’s realm; this only works once the daemon is connected to CliqHub. See Authentication.
Authorizations
Not needed from the same machine. From another host: a dispatch JWT CliqHub signed for this daemon, or a cliq_tok_… personal token whose user is in the daemon's realm.
Query Parameters
Run id
1Response
A text/event-stream that ends with run_end.
A text/event-stream. Each message is event: <type> and data: <JSON>:
connected— first, with{ run_id, state }.- one message per run event as it happens, named by its type (
phase.started,phase.completed,phase.input_required,run.completed, …), with{ id, event_type, phase, agent, payload, created_at }. run_end— last, with{ run_id, state, error }; then the stream closes.
Events are not replayed: you see what happens after you connect. A run that has
already finished gets connected and run_end at once. Read history with Read a run log.