> ## 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.

# Get Chat execution



## OpenAPI

````yaml /api/openapi.yaml get /api/v1/conversations/{conversation}/executions/{execution}
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}:
    parameters:
      - $ref: '#/components/parameters/ConversationID'
      - $ref: '#/components/parameters/ExecutionID'
    get:
      tags:
        - Conversations
      summary: Get Chat execution
      operationId: getChatExecution
      responses:
        '200':
          $ref: '#/components/responses/ExecutionSnapshot'
        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:
    ExecutionSnapshot:
      description: Current execution state.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ExecutionSnapshot'
    ErrorResponse:
      description: The operation did not complete.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    UUID:
      type: string
      format: uuid
    ExecutionSnapshot:
      type: object
      additionalProperties: false
      required:
        - status
        - tools
      properties:
        executionId:
          $ref: '#/components/schemas/UUID'
        conversationId:
          $ref: '#/components/schemas/UUID'
        investigationId:
          $ref: '#/components/schemas/UUID'
        status:
          type: string
          enum:
            - queued
            - running
            - needs_input
            - completed
            - failed
            - cancelled
          description: An expired execution available for another claim appears as queued.
        draftText:
          type: string
          maxLength: 8192
          description: Provisional Chat text. Replace it on each snapshot.
        pendingInput:
          $ref: '#/components/schemas/PendingChatInput'
          description: >-
            Present while awaiting input from the authorized author of the
            original Chat Message.
        message:
          type: object
          additionalProperties: false
          required:
            - sequence
            - text
          properties:
            sequence:
              type: integer
              format: int64
              minimum: 1
            text:
              type: string
              minLength: 1
              maxLength: 8192
        conclusionUrl:
          type: string
          description: Path to the committed Investigation detail.
        tools:
          type: array
          maxItems: 32
          description: Active Tools first, then newest activity by start or finish time.
          items:
            $ref: '#/components/schemas/ExecutionToolActivity'
    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
    PendingChatInput:
      type: object
      additionalProperties: false
      required:
        - occurrenceId
        - questions
      properties:
        occurrenceId:
          $ref: '#/components/schemas/UUID'
        questions:
          type: array
          minItems: 1
          maxItems: 4
          items:
            type: object
            additionalProperties: false
            required:
              - question
              - header
              - options
            properties:
              question:
                type: string
                minLength: 1
              header:
                type: string
                minLength: 1
                maxLength: 12
              context:
                type: string
              multi_select:
                type: boolean
                default: false
              options:
                type: array
                minItems: 2
                maxItems: 4
                items:
                  type: object
                  additionalProperties: false
                  required:
                    - label
                    - description
                  properties:
                    label:
                      type: string
                      minLength: 1
                    description:
                      type: string
                      minLength: 1
                    preview:
                      type: string
    ExecutionToolActivity:
      type: object
      additionalProperties: false
      required:
        - toolRunId
        - tool
        - status
        - startedAt
        - truncated
      properties:
        toolRunId:
          $ref: '#/components/schemas/UUID'
        tool:
          type: string
        status:
          type: string
          enum:
            - running
            - succeeded
            - failed
            - interrupted
        startedAt:
          $ref: '#/components/schemas/Timestamp'
        finishedAt:
          $ref: '#/components/schemas/Timestamp'
        truncated:
          type: boolean
    Timestamp:
      type: string
      format: date-time
  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.