v6
OpenAPI 3.0.02026-08-044760291.8 KBGenerate Article
Live generation event stream (NDJSON keep-alive)
Long-lived NDJSON keep-alive stream of generation events. Replays the buffered events from lastId (default: from the start), then tails new ones live. Each line is a JSON object { id, type, data } where type ∈ chunk | flush | media | tldr | toc | metadata | phase | done | error | end. NOT a JSON response — consume as a stream and reconnect with ?lastId= (the last seen id) if the socket drops. Ends on a terminal (done/error) event, when generation is no longer active, on a safety timeout, or on client disconnect.
get/v3/generate-article/generation-stream/
Query parameters
teamIdstring
Team id (falls back to the session's active project).
slugstring required
Article slug.
lastIdstring
Resume from this Redis stream id (exclusive). Omit to replay from the beginning.
Response
Default Response