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

# List Messages

> Paginated messages for a conversation owned by the current user. For encrypted conversations, send `X-Conversation-Encryption-Password` with the same password used at creation.



## OpenAPI

````yaml GET /conversations/{conversationId}/messages
openapi: 3.1.1
info:
  title: QwixAI
  description: >-
    The official QwixAI REST API – Create and interact with AI characters
    programmatically. Built API-first, every feature available in the app is
    accessible via this API.
  license:
    name: MIT
  version: 0.0.1
servers:
  - url: https://api.qwix.chat/api/v1
security:
  - bearerAuth: []
paths:
  /conversations/{conversationId}/messages:
    get:
      summary: List messages
      description: >-
        Paginated messages for a conversation owned by the current user. For
        encrypted conversations, send `X-Conversation-Encryption-Password` with
        the same password used at creation.
      parameters:
        - name: conversationId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: X-Conversation-Encryption-Password
          in: header
          required: false
          schema:
            type: string
            minLength: 8
          description: >-
            Required when the conversation has `encryptionEnabled: true`. Used
            only to decrypt message bodies in the response.
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Paginated messages
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedConversationMessageList'
        '400':
          description: Missing or invalid encryption header for an encrypted conversation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '404':
          description: Conversation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  parameters:
    Page:
      name: page
      in: query
      schema:
        type: integer
        minimum: 1
        default: 1
      description: Page number (1-based)
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 10
      description: Items per page (max 100)
  schemas:
    PaginatedConversationMessageList:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ConversationMessage'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
    ErrorBody:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error
    ConversationMessage:
      type: object
      required:
        - id
        - type
        - content
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        type:
          $ref: '#/components/schemas/MessageType'
        content:
          type: string
        createdAt:
          type: string
          format: date-time
    PaginationMeta:
      type: object
      required:
        - current_page
        - last_page
        - per_page
        - total_items
      properties:
        current_page:
          type: integer
        last_page:
          type: integer
        per_page:
          type: integer
        total_items:
          type: integer
    MessageType:
      type: string
      enum:
        - system
        - user
        - assistant
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT from `POST /auth/login`, or an API key via the same header depending
        on client configuration.

````