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

# Stream Agent Run Events

> Stream a run's progress as [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) (`text/event-stream`). Create the run with `enable_events: true` to have events published. A keep-alive comment is sent every 15 seconds.



## OpenAPI

````yaml /api-reference/openapi.json get /v2/agents/{agent_id}/runs/{run_id}/events
openapi: 3.1.0
info:
  title: Nimble SDK
  version: 1.0.0
  description: The AI-Native SDK for Real-Time Web Data at scale
servers:
  - url: https://sdk.nimbleway.com
security: []
paths:
  /v2/agents/{agent_id}/runs/{run_id}/events:
    get:
      tags:
        - Public API
      summary: Stream Agent Run Events
      description: >-
        Stream a run's progress as [server-sent
        events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events)
        (`text/event-stream`). Create the run with `enable_events: true` to have
        events published. A keep-alive comment is sent every 15 seconds.
      operationId: >-
        stream_run_events_public_v2_api_v2_public_web_search_agents__agent_id__runs__run_id__events_get
      parameters:
        - in: path
          name: agent_id
          required: true
          schema:
            format: uuid
            title: Agent Id
            type: string
          description: Web Search Agent ID, format `wsa_<uuid>`.
        - in: path
          name: run_id
          required: true
          schema:
            title: Run Id
            type: string
          description: Run ID, format `task_run_<uuid>`.
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                type: string
                title: Event stream
              example: |+
                data: {"type": "progress", "message": "Searching linkedin.com"}

          description: Server-sent event stream of run activity.
        '404':
          description: Run not found for this agent.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    title: Detail
                title: ErrorDetail
              example:
                detail: >-
                  Run 'task_run_c0ffee00-0000-4000-8000-000000000000' not found
                  for agent wsa_2af5b0e2-58b8-4b60-a1a4-9e57e4d33f00
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````