Skip to main content
POST
Send a Template Message

Authorizations

x-api-key
string
header
required

Your application's unique ID.

x-api-secret
string
header
required

Your application's secret key.

Body

application/json

Message payload

template
string
required

The _id of the WhatsAppTemplate to send.

Example:

"60c72b2f9b1d8e001f8a1b2d"

whatsapp
string
required

The _id of the WhatsApp account to send from.

Example:

"60c72b2f9b1d8e001f8a1b2c"

phone
string
required

The recipient's phone number in E.164 format.

Example:

"+911234567890"

dynamicData
object

Key-value pairs for dynamic template variables.

Example:

Response

Message successfully queued. The message object is returned.