WasenderApi - Low Cost WhatsApp API for Developers Send Channel Message - API Documentation - WasenderApi - Low Cost WhatsApp API for Developers
WasenderApi API

API Documentation

WasenderApi WhatsApp API

Send Channel Message

Channels (Communities)

POST/api/send-message

Sends a message to a specific WhatsApp channel using its Channel ID.

Send Message to a WhatsApp Channel

To send a message to a WhatsApp Channel, follow these steps:

  1. First, listen for the message.upsert event. This event will include the channel's unique ID (e.g., 123456789@newsletter) in the jid field.
  2. Once you have the channel ID, use it in the to field when sending a message through your usual send endpoint.
  3. The message parameters are the same as those for regular messages. Just ensure the to field is set to the channel's ID.

⚠️ Important: Currently, only text messages can be sent to a channel.

Parameters

NameTypeRequiredDescription
tostringYesChannel ID (e.g., '123456789@newsletter') .
textstringYesThe text content of the message.

Code Examples

curl -X POST "https://www.wasenderapi.com/api/send-message"
  -H "Authorization: Bearer YOUR_API_KEY"
  -H "Content-Type: application/json"
  -d '{
      "to": "123456789@newsletter",
      "text": "Hello everyone in the channel!"
  }'

Response Examples

{
  "success": true,
  "data": {
    "msgId": 100000,
    "jid": "+123456789",
    "status": "in_progress"
  }
}