WasenderApi API

API Documentation

WasenderApi WhatsApp API

Webhook: Newsletter Message Received

Webhooks

Event is triggered when a message is received in a newsletter (channel) the session is subscribed to.

Webhook Event: messages-newsletter.received

This event is triggered when a new message is published in a newsletter (also known as a Channel) that your session is subscribed to.

The payload includes the message content and the unique JID of the newsletter, which typically ends in @newsletter. Unlike group messages, a participant field is not needed as the sender is the newsletter itself.

See the code example below for a typical payload structure.

Code Examples

{
  "event": "messages-newsletter.received",
  "timestamp": 1633456809,
  "data": {
    "key": {
      "id": "message-id-newsletter-789",
      "fromMe": false,
      "remoteJid": "1234567890123456@newsletter"
    },
    "message": {
      "conversation": "Big announcement coming tomorrow!"
    }
  }
}