---
title: "Stream chat messages"
method: GET
path: "/v3/chats/{chat_id}/stream"
tags: ["v3", "chats"]
---

# Stream chat messages

`GET /v3/chats/{chat_id}/stream`

## Request

- Base URL: `https://api.mentium.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mentium.io/v3/chats/{chat_id}/stream`
- Auth: HTTP bearer

Server-sent events: every row after after_seq (or the Last-Event-ID header), then each new row as it is stored, as a `message` event whose id is the row's seq. A comment line every 25 seconds keeps the connection open; the stream ends after 30 minutes. Reconnect with the last id.

## Path parameters

- `chat_id` string, uuid, required

## Query parameters

- `after_seq` integer: Send rows with seq greater than this

## Headers

- `Last-Event-ID` string, nullable
- `mentium-workspace-id` string, nullable

## Response `200`

Server-sent events

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mentium/apis/mentium-api.md) - [All operations](https://skmtc.dev/mentium/apis/mentium-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mentium/apis/mentium-api/revisions/b4ed8e59432e?raw)
