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

# List conversation messages

> List the messages of a conversation in chronological order, scoped to the partner the API key belongs to. Supports pagination (`limit`, `offset`). Returns `404` if the conversation does not exist or is not accessible to the partner. Requires the `conversation:read` scope.



## OpenAPI

````yaml /openapi.yaml get /v1/conversation/{id}/message/list
openapi: 3.1.0
info:
  title: ProVision Public API
  version: 1.0.0
  description: >-
    Use the ProVision Public API to integrate with ProVision conversations,
    clients, users, and addresses. All endpoints accept and return JSON, are
    authenticated with an `x-api-key` header, and are scoped to a single partner
    tenant.
  contact:
    email: support@onevisionresources.com
    name: OneVision Resources Support
  license:
    name: Proprietary
servers:
  - url: https://connect.provisionapp.io
    description: Production
security: []
paths:
  /v1/conversation/{id}/message/list:
    get:
      tags:
        - conversation
      summary: List conversation messages
      description: >-
        List the messages of a conversation in chronological order, scoped to
        the partner the API key belongs to. Supports pagination (`limit`,
        `offset`). Returns `404` if the conversation does not exist or is not
        accessible to the partner. Requires the `conversation:read` scope.
      operationId: listConversationMessages
      parameters:
        - schema:
            type: string
            format: uuid
            example: 57f2d879-20f8-4106-9abb-44fa099e0448
          required: true
          name: id
          in: path
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          required: false
          name: limit
          in: query
        - schema:
            type:
              - integer
              - 'null'
            minimum: 0
            default: 0
          required: false
          name: offset
          in: query
      responses:
        '200':
          description: Paginated list of messages
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageList'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - OpenApiKeyAuth: []
components:
  schemas:
    MessageList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ConversationMessage'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
      required:
        - data
        - meta
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - error
    ConversationMessage:
      type: object
      properties:
        id:
          type: string
          format: uuid
        body:
          type:
            - string
            - 'null'
        isPrivate:
          type: boolean
        createdAt:
          type: string
          format: date-time
        sender:
          $ref: '#/components/schemas/ConversationParticipant'
      required:
        - id
        - body
        - isPrivate
        - createdAt
    PaginationMeta:
      type: object
      properties:
        total:
          type: integer
          description: Total number of matching records
        limit:
          type: integer
          description: Page size used for this response
        offset:
          type: integer
          description: Offset used for this response
      required:
        - total
        - limit
        - offset
    ApiError:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code
          example: NOT_FOUND
        message:
          type: string
          description: Human-readable error description
      required:
        - code
        - message
    ConversationParticipant:
      anyOf:
        - type: object
          properties:
            id:
              type: string
              format: uuid
            identityId:
              type: string
            firstName:
              type: string
            lastName:
              type: string
            entityType:
              $ref: '#/components/schemas/ParticipantEntityType'
            email:
              type:
                - string
                - 'null'
          required:
            - id
            - identityId
            - firstName
            - lastName
            - entityType
        - type: object
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
            identityId:
              type: string
            entityType:
              $ref: '#/components/schemas/ParticipantEntityType'
          required:
            - id
            - name
            - identityId
            - entityType
        - type: 'null'
    ParticipantEntityType:
      type:
        - string
        - 'null'
      enum:
        - unknown
        - client
        - platform_user
        - bot
        - rsm
        - null
  securitySchemes:
    OpenApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Send the API key in the x-api-key header.

````