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

# Stream investigation events



## OpenAPI

````yaml /api/openapi.yaml get /api/v1/investigations/{investigation}/events
openapi: 3.1.0
info:
  title: OpenCluster Control Plane API
  version: 0.1.0
  description: HTTP contract for the OpenCluster product API and inbound webhook endpoints.
  license:
    name: Apache-2.0
servers:
  - url: http://localhost:8080
    description: Local self-hosted deployment
security: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Members
  - name: Sessions
  - name: Policy
  - name: Audit
  - name: Integration Types
  - name: Integrations
  - name: Relays
  - name: Incidents
  - name: Investigations
  - name: Conversations
  - name: Postmortems
  - name: Webhook Deliveries
  - name: Webhook Intake
  - name: Metadata
paths:
  /api/v1/investigations/{investigation}/events:
    parameters:
      - $ref: '#/components/parameters/InvestigationID'
      - $ref: '#/components/parameters/Organization'
      - $ref: '#/components/parameters/LastEventID'
    get:
      tags:
        - Investigations
      summary: Stream investigation events
      operationId: streamInvestigationEvents
      parameters:
        - $ref: '#/components/parameters/Organization'
      responses:
        '200':
          description: >-
            Increasing event identifiers, named events, and comment heartbeats.
            Last-Event-ID resumes after the named event.
          headers:
            X-Accel-Buffering:
              schema:
                type: string
                const: 'no'
          content:
            text/event-stream:
              schema:
                type: string
              example: |+
                id: 42
                event: activity
                data: {"kind":"observation"}

                : heartbeat

        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - SessionCookie: []
components:
  parameters:
    InvestigationID:
      name: investigation
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/UUID'
    Organization:
      name: X-OpenCluster-Organization
      in: header
      required: true
      description: Selects the Organization whose data and membership are authorized.
      schema:
        $ref: '#/components/schemas/OrganizationID'
      example: acme-production
    LastEventID:
      name: Last-Event-ID
      in: header
      required: false
      schema:
        type: integer
        format: int64
        minimum: 0
  responses:
    Unauthorized:
      description: Missing or rejected credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        Membership, permission, Organization selection, or cookie origin was
        rejected.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found in the selected Organization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    UUID:
      type: string
      format: uuid
    OrganizationID:
      type: string
      pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
      minLength: 1
      maxLength: 63
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
          minLength: 1
          maxLength: 1024
          example: the selected Organization is not available to this caller
        reason:
          type: string
          enum:
            - credential_rejected
            - session_expired
            - session_revoked
        requires:
          type: string
          minLength: 1
          maxLength: 128
  securitySchemes:
    SessionCookie:
      type: apiKey
      in: cookie
      name: __Host-oc_session

````