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

# List conversation messages

> Returns visible Messages in ascending sequence order. Use the returned cursor with the same Conversation.



## OpenAPI

````yaml /api/openapi.yaml get /api/v1/conversations/{conversation}/messages
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}/messages:
    parameters:
      - $ref: '#/components/parameters/ConversationID'
    get:
      tags:
        - Conversations
      summary: List conversation messages
      description: >-
        Returns visible Messages in ascending sequence order. Use the returned
        cursor with the same Conversation.
      operationId: listConversationMessages
      parameters:
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A bounded page of Messages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationMessagePage'
        default:
          $ref: '#/components/responses/ErrorResponse'
      security:
        - SessionCookie: []
components:
  parameters:
    ConversationID:
      name: conversation
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/UUID'
    Limit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 200
        default: 50
    Cursor:
      name: cursor
      in: query
      required: false
      description: Opaque resume position returned in the preceding page's next field.
      schema:
        type: string
        minLength: 1
        maxLength: 512
  schemas:
    ConversationMessagePage:
      type: object
      additionalProperties: false
      required:
        - items
        - next
        - total
      properties:
        next:
          oneOf:
            - type: string
              maxLength: 512
            - type: 'null'
        total:
          oneOf:
            - type: integer
              minimum: 0
            - type: 'null'
        items:
          type: array
          maxItems: 200
          items:
            $ref: '#/components/schemas/ConversationMessage'
    UUID:
      type: string
      format: uuid
    ConversationMessage:
      type: object
      additionalProperties: false
      required:
        - sequence
        - role
        - text
        - createdAt
        - windowFrom
        - windowUntil
      properties:
        windowFrom:
          $ref: '#/components/schemas/Timestamp'
        windowUntil:
          $ref: '#/components/schemas/Timestamp'
        sequence:
          type: integer
          format: int64
          minimum: 1
        role:
          type: string
          enum:
            - user
            - assistant
        authorId:
          type: string
          maxLength: 256
        authorName:
          type: string
          maxLength: 256
        text:
          type: string
          minLength: 1
          maxLength: 8192
        sourceReference:
          type: string
          maxLength: 1024
        executionId:
          $ref: '#/components/schemas/UUID'
          description: Execution for a user Message in native Chat.
        createdAt:
          $ref: '#/components/schemas/Timestamp'
    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
    Timestamp:
      type: string
      format: date-time
  responses:
    ErrorResponse:
      description: The operation did not complete.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  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.