Tail chat-session events (SSE)
Server-Sent Events stream of Vercel AI SDK v6 envelopes for the session. Response is text/event-stream — stream it, don’t buffer.
Use ?since= (or the Last-Event-Id header) in two cases:
- First connection for a turn just enqueued via
POST .../messages— pass thesince_cursorfrom that POST response so the tail starts strictly after the previous turn’s terminal envelopes. - Reconnect of an already-tailing stream — pass the last event id you received so playback resumes at the right spot.
Add ?for_message=<user_message_id> (from the POST response) to pin the tail to the single turn that answers that message. Without it the tail attaches to the first turn boundary after since, which can be a sibling turn’s when several messages are queued behind one running turn.
Authorizations
Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).
Path Parameters
Query Parameters
Stream-event id to resume from.
user_message_id to pin the tail to — only the turn answering this message is streamed; sibling turns are skipped.
