> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pragmatiks.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Event Stream

> Stream resource state changes via Server-Sent Events.

Subscribes to NATS state notifications for the authenticated organization
and forwards them as SSE events. Each event contains the full resource
JSON after a state transition, with optional event metadata (from_state,
event_type) when available.

SSE events use `event: state_change` when lifecycle event metadata
is present, otherwise a generic message event.

The connection stays open until the client disconnects.

Returns:
    SSE stream of resource state change events.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json get /events/stream
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /events/stream:
    get:
      tags:
        - events
      summary: Event Stream
      description: >-
        Stream resource state changes via Server-Sent Events.


        Subscribes to NATS state notifications for the authenticated
        organization

        and forwards them as SSE events. Each event contains the full resource

        JSON after a state transition, with optional event metadata (from_state,

        event_type) when available.


        SSE events use `event: state_change` when lifecycle event metadata

        is present, otherwise a generic message event.


        The connection stays open until the client disconnects.


        Returns:
            SSE stream of resource state change events.
      operationId: events-event_stream
      responses:
        '200':
          description: Successful Response

````