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

# Stream events (SSE)



## OpenAPI

````yaml GET /v1/sessions/{session_id}/events/stream
openapi: 3.0.3
info:
  title: LiteLLM Agent Platform API
  description: >-
    Unified API for the LiteLLM Agent Platform — gateway, agents, sessions, and
    runtimes.
  version: 0.1.0
servers:
  - url: https://litellm-rust.onrender.com
    description: Production
  - url: http://localhost:4000
    description: Local (Docker Compose)
security:
  - BearerAuth: []
tags:
  - name: System
  - name: Models
  - name: Messages
  - name: API Keys
  - name: Agents
  - name: Sessions
  - name: Runtimes
  - name: MCP
paths:
  /v1/sessions/{session_id}/events/stream:
    get:
      tags:
        - Sessions
      summary: Stream session events (SSE)
      operationId: streamSessionEvents
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
        - name: key
          in: query
          required: false
          schema:
            type: string
          description: >-
            API key (alternative to Authorization header, required for
            EventSource)
      responses:
        '200':
          description: >-
            Server-sent event stream. Events are newline-delimited JSON prefixed
            with `data: `.
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/AgentEvent'
        '401':
          description: Unauthorized
        '404':
          description: Session not found
      security:
        - BearerAuth: []
components:
  schemas:
    AgentEvent:
      type: object
      properties:
        type:
          type: string
          enum:
            - session.status_running
            - agent.message
            - agent.tool_use
            - agent.tool_result
            - session.status_idle
            - session.error
          example: agent.message
        content:
          type: string
          example: Here is the summary...
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Your LITELLM_MASTER_KEY. Default for local Docker Compose: `sk-local`'

````