Skip to main content

Send WhatsApp Message

Send a text or template message to a WhatsApp contact.

POST/whatsapp/send-whatsapp-message/

Headers

NameValue
AuthorizationBearer Access Token
Content-Typeapplication/json

Payload

phone_number
required
string

Recipient phone number in E.164 format

message
required
string

Message text or template data with variables replaced with actual values

sender_number
required
string

Sender WhatsApp number (number registered with WhatsApp Business)

type
string
Default: "text"
Enum: "text" "template"

Message type

  • text - text
  • template - template
object

Template data (required if type is 'template')

Response

{
"message": "Message sent successfully",
"data": {
"id": 1,
"message": "Hello World",
"message_id": "wamid.XXXXX",
"status": "<status (SENT/RECEIVED)>",
"contact": "<contact_id>",
"phone_number_id": "<phone_number_id>",
"created_at": "<timestamp>"
},
"success": true
}