> ## 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 Chat snapshots

> Reconnect to receive the current snapshot. Disconnecting leaves the execution running.



## OpenAPI

````yaml /api/openapi.yaml get /api/v1/conversations/{conversation}/executions/{execution}/events
openapi: 3.1.0
info:
  title: OpenCluster Control Plane API
  version: 0.1.0
  description: >
    Use the OpenAPI document for the deployed version. Product operations use
    session

    cookies and resolve the Organization from the authenticated User.

    Include the configured public Origin on write requests.

    Collection cursors are opaque. Pass next unchanged to the cursor parameter

    documented by the operation. An empty next value ends pagination.

    Use HTTP status codes for error handling rather than parsing error text.
  license:
    name: Apache-2.0
servers:
  - url: http://localhost:8081
    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: Slack
  - name: Webhook Intake
paths:
  /api/v1/conversations/{conversation}/executions/{execution}/events:
    parameters:
      - $ref: '#/components/parameters/ConversationID'
      - $ref: '#/components/parameters/ExecutionID'
    get:
      tags:
        - Conversations
      summary: Stream Chat snapshots
      description: >-
        Reconnect to receive the current snapshot. Disconnecting leaves the
        execution running.
      operationId: streamChatExecution
      responses:
        '200':
          $ref: '#/components/responses/ExecutionSnapshotStream'
        '400':
          $ref: '#/components/responses/BadRequest'
        default:
          $ref: '#/components/responses/ErrorResponse'
      security:
        - SessionCookie: []
components:
  parameters:
    ConversationID:
      name: conversation
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/UUID'
    ExecutionID:
      name: execution
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/UUID'
  responses:
    ExecutionSnapshotStream:
      description: >
        Each snapshot event carries a complete ExecutionSnapshot JSON object.
        Replace the previous snapshot on reconnect without query parameters. The
        stream ignores Last-Event-ID. Use the committed Message sequence when
        available. The stream also sends comment heartbeats and closes after
        sending terminal state or when access ends.
      headers:
        X-Accel-Buffering:
          schema:
            type: string
            const: 'no'
      content:
        text/event-stream:
          schema:
            type: string
          example: >+
            event: snapshot

            data:
            {"investigationId":"22222222-2222-4222-8222-222222222222","status":"running","tools":[]}


            : keep-alive

    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ErrorResponse:
      description: The operation did not complete.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    UUID:
      type: string
      format: uuid
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
          minLength: 1
          maxLength: 1024
          example: the requested resource is not available to this caller
        reason:
          type: string
          enum:
            - credential_rejected
            - session_expired
        requires:
          type: string
          minLength: 1
          maxLength: 128
  securitySchemes:
    SessionCookie:
      type: apiKey
      in: cookie
      name: __Host-OC-SESSIONID

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.