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

# Chat Messages

> Lista as mensagens do chat do pedido, da mais antiga para a mais recente dentro da página.



## OpenAPI

````yaml /openapi/chat.yaml get /app/order/{order-id}/chat/messages
openapi: 3.1.0
info:
  title: CentralCart API
  version: 1.0.0
servers:
  - url: https://api.centralcart.io/v1
    description: Produção
security:
  - bearerAuth: []
paths:
  /app/order/{order-id}/chat/messages:
    get:
      tags:
        - Chat
      summary: Chat Messages
      description: >-
        Lista as mensagens do chat do pedido, da mais antiga para a mais recente
        dentro da página.
      operationId: listChatMessages
      parameters:
        - name: order-id
          in: path
          required: true
          description: O ID interno do pedido (`internal_id`)
          schema:
            type: string
        - name: page
          in: query
          required: false
          description: Página da listagem
          schema:
            type: number
            default: 1
        - name: limit
          in: query
          required: false
          description: Mensagens por página (1 a 100)
          schema:
            type: number
            default: 50
      responses:
        '200':
          description: Mensagens do chat.
          content:
            application/json:
              schema:
                type: object
                properties:
                  meta:
                    $ref: '#/components/schemas/Meta'
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ChatMessage'
              example:
                meta:
                  total: 3
                  per_page: 50
                  current_page: 1
                  last_page: 1
                data:
                  - id: 66b2f4c1d1a7c9f2b3a04e13
                    message: Oi, comprei mas não recebi ainda
                    attachments: []
                    user_type: buyer
                    sender_name: null
                    source: null
                    read_by:
                      - buyer
                      - seller
                    timestamp: '2026-09-20T18:20:10.000Z'
                  - id: 66b2f4c1d1a7c9f2b3a04e14
                    message: Já entreguei, pode conferir!
                    attachments: []
                    user_type: store
                    sender_name: Automação de entregas
                    source: api
                    read_by:
                      - seller
                    timestamp: '2026-09-20T18:20:41.000Z'
        '404':
          description: Pedido não encontrado, ou pedido ainda sem chat.
components:
  schemas:
    Meta:
      type: object
      properties:
        total:
          type: number
        per_page:
          type: number
        current_page:
          type: number
        last_page:
          type: number
    ChatMessage:
      type: object
      properties:
        id:
          type: string
        message:
          type: string
        attachments:
          type: array
          items:
            type: string
        user_type:
          type: string
          description: >-
            `buyer` (cliente), `seller` (atendente no painel) ou `store`
            (mensagem automática do produto ou enviada pela API)
        sender_name:
          type: string
          nullable: true
          description: Nome exibido acima da mensagem
        source:
          type: string
          nullable: true
          description: '`api` quando a mensagem foi enviada por uma integração'
        read_by:
          type: array
          items:
            type: string
        timestamp:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Token de API gerado no painel da CentralCart.

````