Skip to main content

Subscribe to chat messages (SSE)

GET 

/v1/spaces/:space_id/chats/:chat_id/messages/stream

Opens a Server-Sent Events stream for real-time chat updates. On connect, the last N messages are sent, followed by live events (message_added, message_updated, message_deleted, reactions_updated). Periodic SSE comment lines (: heartbeat) keep the connection alive during idle periods; per the SSE spec these are invisible to EventSource clients. Clients can tune the cadence with the Anytype-Heartbeat-Seconds header (1-60s, default 30s; out-of-range or unparsable values fall back to the default).

Request​

Responses​

SSE stream of chat events