Stream Chat Progress
Stream real-time progress for a chat job using Server-Sent Events (SSE).
Opens an SSE connection that streams events as the AI processes your request. Use this with the job_id returned from POST /v1/chat/async.
Event types:
- ‘intermediate’: Progress updates during processing (content, sequence, timestamp).
- ‘document_sync’: Initial chunk-id-tagged HTML sync, emitted once at stream start when document_html was provided.
- ‘proposed_change, proposed_change_batch’: A document change proposed for review (when approval_mode is ‘ask_every_time’).
- ‘final’: Processing complete. Contains the full result with AI response and document changes.
- ‘usage’: Billing data emitted after ‘final’ (monthly_used, monthly_limit, monthly_remaining).
- ‘ui_pointer’: Side-channel hint highlighting a UI affordance the user asked about (export/download). Emit-only; the ‘final’ content also covers the answer in prose.
- ‘error’: An error occurred (job failed, cancelled, or not found).
Authentication: Pass a token or api_key as a query parameter (required for EventSource which cannot set headers).
Headers
Path Parameters
Query Parameters
SSE Last-Event-ID resume: only replay intermediate responses with sequence > this. Reconnects pass the highest sequence already processed so old events are NOT re-emitted; default 0 = full history.
x >= 0Job ID to stream progress for
Authentication token (query parameter for EventSource compatibility)
API key (query parameter for EventSource compatibility)
Response
Successful Response

