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

# Obter mensagens da newsletter

> Busca mensagens de uma newsletter, com paginação opcional por contagem e por before-id.



## OpenAPI

````yaml openapi.evolution-go.pt.json POST /newsletter/messages
openapi: 3.1.0
info:
  title: Evolution GO Layer
  version: 1.0.0
  description: >-
    Camada de API do Pilot Status — Evolution GO. Base URL
    `https://pilotstatus.com.br/api/layer/evolution-go`. Autentique com o header
    `apikey` (sua chave `ps_` do Pilot Status) ou `Authorization: Bearer`.
    Endpoints de instância/sessão NÃO estão disponíveis na camada.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-go
security:
  - apiKey: []
tags:
  - name: Chamada (voz)
  - name: Chat
  - name: Comunidade
  - name: Grupo
  - name: Etiqueta (label)
  - name: Mensagem
  - name: Newsletter / Canais
  - name: Envio (balanceado)
  - name: Usuário / Contatos
paths:
  /newsletter/messages:
    post:
      tags:
        - Newsletter / Canais
      summary: Obter mensagens da newsletter
      description: >-
        Busca mensagens de uma newsletter, com paginação opcional por contagem e
        por before-id.
      operationId: post__newsletter_messages
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jid:
                  type: string
                  description: JID da newsletter (termina em `@newsletter`).
                  example: 120363012345678901@newsletter
                count:
                  type: integer
                  description: Número máximo de mensagens a retornar.
                  example: 50
                before_id:
                  type: integer
                  description: >-
                    Retorna mensagens mais antigas que este id de mensagem
                    (cursor de paginação).
                  example: 100
              required:
                - jid
      responses:
        '200':
          description: Sucesso — corpo de resposta nativo do provedor.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Handler wraps an array of types.NewsletterMessage in a {
                  message, data } envelope. NewsletterMessage has no JSON struct
                  tags, so fields are serialized with their Go (PascalCase)
                  names.
                properties:
                  message:
                    type: string
                    description: Always "success" on HTTP 200.
                  data:
                    type: array
                    description: >-
                      Newsletter messages, newest-first, paginated by
                      count/before_id.
                    items:
                      type: object
                      properties:
                        MessageServerID:
                          type: integer
                          description: >-
                            Server-assigned sequential id of the message within
                            the newsletter.
                        MessageID:
                          type: string
                          description: WhatsApp message id.
                        Type:
                          type: string
                          description: >-
                            Message type as reported by the server (e.g. "text",
                            "image").
                        Timestamp:
                          type: string
                          description: Message timestamp (RFC3339).
                        ViewsCount:
                          type: integer
                          description: Number of views of this newsletter message.
                        ReactionCounts:
                          type: object
                          description: Map of reaction emoji to its count.
                          additionalProperties:
                            type: integer
                        Message:
                          type: object
                          description: >-
                            Decrypted waE2E.Message payload (protobuf JSON).
                            Only present when fetching messages (not in live
                            updates); shape depends on message type. Empty/unset
                            fields are omitted.
                          properties:
                            conversation:
                              type: string
                              description: Plain text body for a simple text message.
              example:
                message: success
                data:
                  - MessageServerID: 102
                    MessageID: 3EB0C767D26A1D8A2B3C
                    Type: text
                    Timestamp: '2026-07-09T18:24:05Z'
                    ViewsCount: 842
                    ReactionCounts:
                      👍: 37
                      ❤️: 12
                    Message:
                      conversation: New release is live! 🚀
                  - MessageServerID: 101
                    MessageID: 3EB0C767D26A1D8A2B3B
                    Type: text
                    Timestamp: '2026-07-08T09:10:00Z'
                    ViewsCount: 915
                    ReactionCounts: {}
                    Message:
                      conversation: Welcome to the channel.
        default:
          description: Erro — erro do provedor ou da camada.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Your Pilot Status API key (ps_...). Evolution GO also accepts
        `Authorization: Bearer <key>`.

````