---
search:
  tags:
    - Stream
    - GET
seo:
  description: >-
    An authenticated, resumable Server-Sent Events feed of workspace state
    changes (runs, spans,… Reference for the GET /api/v2/stream endpoint in the
    Anlyon API.
sidebar:
  label: Subscribe to the realtime event stream
  badge: GET
title: Subscribe to the realtime event stream
type: openapi-operation
---
An authenticated, resumable Server-Sent Events feed of workspace state changes (runs, spans, approvals, messages, workflows, budgets, notifications, deliveries), scoped to the API key's workspace and environment (only events attributed to that environment). Resume after a disconnect by sending the last id you saw as the `Last-Event-ID` header (or `?cursor=`); events after that id are replayed from a bounded window, so a reconnect has no silent gap.

`GET /api/v2/stream`
