---
title: "Live generation event stream (NDJSON keep-alive)"
method: GET
path: "/v3/generate-article/generation-stream/"
tags: ["Generate Article"]
---

# Live generation event stream (NDJSON keep-alive)

`GET /v3/generate-article/generation-stream/`

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.

## Query parameters

- `teamId` string
- `slug` string, required
- `lastId` string

## Response `200`

Default Response

---

[API](https://skmtc.net/snowseo/apis/snowseo-api.md) · [All operations](https://skmtc.net/snowseo/apis/snowseo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/snowseo/snowseo-api/versions/6e50f4761eea/schema)
