Skip to 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_numberrequired
string

Recipient phone number in E.164 format

messagerequired
string

Message text or template data with variables replaced with actual values

sender_numberrequired
string

Sender WhatsApp number (number registered with WhatsApp Business)

type
object

Message type

  • text - text
  • template - template
template
object

Template data (required if type is 'template')

namerequired
string

Template name (determines which template to send)

languagerequired
object
coderequired
string

Language and locale code (e.g., en or en_US)

componentsrequired
array of object

Template components (body, header, etc.)

Array [
typerequired
string

Component type (e.g., body)

parametersrequired
array of object

List of parameters for template variables (empty list if no variables in template)

Array [
typerequired
string

Parameter type (e.g., text)

textrequired
string

Value for the template variable

]
]

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
}