Skip to main content
POST
/
messages
/
send
/
raw
Send raw WhatsApp template message
curl --request POST \
  --url https://modawer.com/api/messages/send/raw \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "whatsappBusinessId": "<string>",
  "phoneNumberId": "<string>",
  "payload": {
    "recipient": "<string>",
    "to": "<string>",
    "type": "template",
    "template": {
      "name": "<string>",
      "language": {
        "code": "<string>"
      },
      "components": [
        {}
      ]
    }
  },
  "channels": [
    "WhatsApp"
  ]
}
'
{
  "queued": true
}

Headers

X-API-KEY
string
required

Body

application/json
whatsappBusinessId
string
required

Connected WhatsApp Business Account ID (WABA ID).

phoneNumberId
string
required

WhatsApp phone number ID that should send the message.

payload
object
required
channels
enum<string>[]

Optional message flow. Only applicable when the selected template is AUTHENTICATION.

Available options:
WhatsApp,
Telegram

Response

200 - application/json

OK

queued
boolean
required