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

# Stream telemetry events (SSE)

> Replay stored telemetry events for a session, then follow live telemetry events over SSE.



## OpenAPI

````yaml /docs/reference/openapi.json get /events/{session_id}
openapi: 3.1.0
info:
  description: >-
    The HTTP API of an agent served with `omniserve run --agent agent.py`: runs,
    approvals, budgets, background tasks, sessions and the evidence of every
    run.
  title: OmniServe
  version: latest
servers:
  - description: omniserve run, locally
    url: http://localhost:8000
security: []
paths:
  /events/{session_id}:
    get:
      tags:
        - Sessions
      summary: Stream telemetry events (SSE)
      description: >-
        Replay stored telemetry events for a session, then follow live telemetry
        events over SSE.
      operationId: stream_telemetry_events_events__session_id__get
      parameters:
        - in: path
          name: session_id
          required: true
          schema:
            title: Session Id
            type: string
        - description: Optional run id to isolate one run inside the session.
          in: query
          name: run_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Optional run id to isolate one run inside the session.
            title: Run Id
        - description: Resume after this stream cursor (or send Last-Event-ID).
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Resume after this stream cursor (or send Last-Event-ID).
            title: Cursor
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````