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

# Listar Mensagens do Chat

> Retorna mensagens de um chat específico



## OpenAPI

````yaml openapi-v2.json get /chats/messages
openapi: 3.0.0
info:
  title: Wapizap API v2 - Native
  description: >-
    API v2 nativa Wapizap com arquitetura RESTful moderna. Inclui 60 endpoints
    para gerenciamento completo de integrações WhatsApp, incluindo instâncias,
    mensagens, chats, grupos, contatos, webhooks e downloads.
  version: 2.0.0
  contact:
    name: Wapizap Support
    url: https://wapizap.com/support
servers:
  - url: https://api.wapizap.com/api/v2
    description: Produção
  - url: http://localhost:3000/api/v2
    description: Desenvolvimento
security:
  - BearerAuth: []
tags:
  - name: Instances
    description: Gerenciamento de instâncias WhatsApp
  - name: Messages
    description: Envio e gerenciamento de mensagens
  - name: Chats
    description: Gerenciamento de chats e conversas
  - name: Contacts
    description: Gerenciamento de contatos
  - name: Groups
    description: Gerenciamento de grupos
  - name: Webhooks
    description: Configuração de webhooks
  - name: Downloads
    description: Download de mídias
paths:
  /chats/messages:
    get:
      tags:
        - Chats
      summary: Listar Mensagens do Chat
      description: Retorna mensagens de um chat específico
      parameters:
        - name: instanceId
          in: query
          required: true
          schema:
            type: string
            format: uuid
        - name: chatId
          in: query
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          schema:
            type: string
            description: Cursor para paginação
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 100
      responses:
        '200':
          description: Mensagens do chat
          content:
            application/json:
              schema:
                type: object
                properties:
                  messages:
                    type: array
                    items:
                      $ref: '#/components/schemas/Message'
                  nextCursor:
                    type: string
components:
  schemas:
    Message:
      type: object
      properties:
        id:
          type: string
        instanceId:
          type: string
        remoteJid:
          type: string
        fromMe:
          type: boolean
        type:
          type: string
          enum:
            - text
            - image
            - video
            - audio
            - document
            - sticker
            - location
            - contact
            - poll
            - reaction
            - buttons
            - list
        content:
          type: object
        timestamp:
          type: integer
        status:
          type: string
          enum:
            - pending
            - sent
            - delivered
            - read
            - failed
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````