Skip to main content

Send Your First WhatsApp Message

Send a WhatsApp message using the CM.com Business Messaging API. The same API you use for SMS — just specify WhatsApp as the channel.

Prerequisites​

  • A CM.com account with messaging access
  • WhatsApp channel onboarded (via Channels API or dashboard)
  • A product token

Step 1: Send a text message​

curl -X POST https://gw.cmtelecom.com/v1.0/message \
-H "Content-Type: application/json" \
-d '{
"messages": {
"authentication": {
"producttoken": "YOUR_PRODUCT_TOKEN"
},
"msg": [{
"from": "CM.com",
"to": [{"number": "0031612345678"}],
"allowedChannels": ["WhatsApp"],
"body": {"content": "Hello from WhatsApp!"}
}]
}
}'

Step 2: Add rich content​

WhatsApp supports images, documents, buttons, and list messages. See the WhatsApp documentation for message format details.

Next steps​