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

# List Messages

> Retrieve all messages in a conversation

Retrieve all messages in a conversation.


## OpenAPI

````yaml api-reference/openapi.json get /api/v1/conversations/{id}/messages/
openapi: 3.0.3
info:
  title: Wassist API
  version: 1.0.0
  description: API for building WhatsApp AI agents
servers:
  - url: https://backend.wassist.app
    description: Production
  - url: http://localhost:8050
    description: Development
security: []
tags:
  - name: Agents
    description: Create and manage AI agents
  - name: Conversations
    description: Chat conversations and messages
  - name: WhatsApp
    description: WhatsApp Business account management
  - name: Contacts
    description: Contact management
  - name: Integrations
    description: Third-party integrations
paths:
  /api/v1/conversations/{id}/messages/:
    get:
      tags:
        - api
      description: |-
        Get or send messages in a conversation.

        POST supports unified input for text or template messages:
        - type: 'text' with 'message' field
        - type: 'template' with 'templateName' and optional 'variables' fields
      operationId: api_v1_conversations_messages_list
      parameters:
        - in: path
          name: id
          schema:
            type: string
          required: true
        - in: query
          name: limit
          schema:
            type: integer
          description: Pagination limit (default 50)
        - in: query
          name: offset
          schema:
            type: integer
          description: Pagination offset
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedMessageList'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PaginatedMessageList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=200&limit=100
        results:
          type: array
          items:
            $ref: '#/components/schemas/Message'
    Message:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        role:
          type: string
          readOnly: true
        type:
          type: string
          readOnly: true
        status:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        replyTo:
          type: string
          readOnly: true
        text:
          type: string
          readOnly: true
        image:
          type: string
          readOnly: true
        cta:
          type: string
          readOnly: true
        listSelection:
          type: string
          readOnly: true
        template:
          type: string
          readOnly: true
        unified:
          type: string
          readOnly: true
        quickReply:
          type: string
          readOnly: true
      required:
        - createdAt
        - cta
        - id
        - image
        - listSelection
        - quickReply
        - replyTo
        - role
        - status
        - template
        - text
        - type
        - unified
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key authentication. Pass your API key in the X-API-Key header.

````