> ## 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.

> ## Agent Instructions
> Integrating Pilot Status end to end? Follow https://docs.pilotstatus.com.br/guides/integrate-with-ai.md (pt-BR: https://docs.pilotstatus.com.br/pt-BR/guides/integrate-with-ai.md). No step requires contacting support: every credential is shown in the dashboard or in an API response, and a lost one is regenerated, not recovered.
> Webhook signing secret: shown ONCE in the Signing secret window right after creating the webhook on /webhooks, and in the `secret` field of the POST /v1/webhooks response (MCP: webhooks_create). Lost it: Edit Webhook → Generate a new secret, POST /v1/webhooks/{id}/rotate-secret, or webhooks_rotate_secret (the old one stops working at once). Verify `x-pilot-status-signature` = hex HMAC-SHA256 of the raw request body keyed with that secret.
> Meta verify token (number connected with the user's own Meta app credentials): Meta Number Created! window after connecting, then the number's card on Numbers (workspace Owner), or webhook.verifyToken in the POST /v1/numbers/meta response. It is not the webhook signing secret.
> REST auth: `x-api-key: ps_...` header, never Authorization: Bearer. MCP: https://mcp.pilotstatus.com.br/mcp (148 tools, OAuth 2.1 or x-api-key); Code Mode: https://mcp.pilotstatus.com.br/code. Destructive MCP tools return a preview and a confirm_token: show the preview and call again only after the user's explicit yes. Over OAuth, revealing or creating ps_ API keys is workspace Owner only.

# Obtener mensajes del canal

> Obtiene mensajes de un newsletter, con count opcional y paginación por before-id.



## OpenAPI

````yaml openapi.evolution-go.es.json POST /newsletter/messages
openapi: 3.1.0
info:
  title: Evolution GO Layer
  version: 1.0.0
  description: >-
    Pilot Status API Layer: Evolution GO. URL base
    `https://pilotstatus.com.br/api/layer/evolution-go`. Autentícate con el
    header `apikey` (tu clave `ps_` de Pilot Status); `Authorization: Bearer` no
    se acepta. Los endpoints de instancia/sesión NO están disponibles a través
    del layer.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-go
security:
  - apiKey: []
tags:
  - name: Call (voice)
  - name: Chat
  - name: Community
  - name: Group
  - name: Label
  - name: Message
  - name: Newsletter / Channels
  - name: Send (load-balanced)
  - name: User / Contacts
paths:
  /newsletter/messages:
    post:
      tags:
        - Newsletter / Channels
      summary: Obtener mensajes del newsletter
      description: >-
        Obtiene mensajes de un newsletter, con count opcional y paginación por
        before-id.
      operationId: post__newsletter_messages
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jid:
                  type: string
                  description: JID del newsletter (termina en `@newsletter`).
                  example: 120363012345678901@newsletter
                count:
                  type: integer
                  description: Número máximo de mensajes a devolver.
                  example: 50
                before_id:
                  type: integer
                  description: >-
                    Devuelve mensajes anteriores a este id de mensaje (cursor de
                    paginación).
                  example: 100
              required:
                - jid
      responses:
        '200':
          description: 'Éxito: cuerpo de respuesta nativo del proveedor.'
          content:
            application/json:
              schema:
                type: object
                description: >-
                  El handler envuelve un array de types.NewsletterMessage en un
                  sobre { message, data }. NewsletterMessage no tiene tags JSON
                  en el struct, así que los campos se serializan con sus nombres
                  de Go (PascalCase).
                properties:
                  message:
                    type: string
                    description: Siempre "success" en HTTP 200.
                  data:
                    type: array
                    description: >-
                      Mensajes del newsletter, del más reciente al más antiguo,
                      paginados por count/before_id.
                    items:
                      type: object
                      properties:
                        MessageServerID:
                          type: integer
                          description: >-
                            Id secuencial asignado por el servidor al mensaje
                            dentro del newsletter.
                        MessageID:
                          type: string
                          description: Id del mensaje de WhatsApp.
                        Type:
                          type: string
                          description: >-
                            Tipo de mensaje según lo informa el servidor (p. ej.
                            "text", "image").
                        Timestamp:
                          type: string
                          description: Marca de tiempo del mensaje (RFC3339).
                        ViewsCount:
                          type: integer
                          description: Cantidad de vistas de este mensaje del newsletter.
                        ReactionCounts:
                          type: object
                          description: Mapa de emoji de reacción a su cantidad.
                          additionalProperties:
                            type: integer
                        Message:
                          type: object
                          description: >-
                            Payload waE2E.Message descifrado (protobuf JSON).
                            Solo está presente al obtener mensajes (no en
                            actualizaciones en vivo); la forma depende del tipo
                            de mensaje. Los campos vacíos o sin definir se
                            omiten.
                          properties:
                            conversation:
                              type: string
                              description: >-
                                Cuerpo de texto plano de un mensaje de texto
                                simple.
              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: Error — provider or layer error.
          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: >-
        El token de la instancia, enviado en el header `apikey`: el token de la
        instancia de Evolution GO que migraste en el dashboard (Números →
        Conectar → Migrar), o el token propio de la instancia de Pilot Status.
        Una API key `ps_` de Pilot Status NO se acepta (404 `Instance not
        found`). Este es el único header que lee el layer de Evolution GO:
        `Authorization: Bearer` y `x-api-key` no se aceptan, y una solicitud sin
        `apikey` recibe 401.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.