Queues a pre-approved WhatsApp template message for sending to a contact.
Your application's unique ID.
Your application's secret key.
Message payload
The _id of the WhatsAppTemplate to send.
"60c72b2f9b1d8e001f8a1b2d"
The _id of the WhatsApp account to send from.
"60c72b2f9b1d8e001f8a1b2c"
The recipient's phone number in E.164 format.
"+911234567890"
Key-value pairs for dynamic template variables.
{
"otpCode": "required in AUTHENTICATION Template",
"FIRSTNAME": "Guest",
"order_id": "12345",
"header_handle": "MEDIA public url according to header type",
"location": {
"latitude": 40.741895,
"longitude": -73.989308,
"name": "location name",
"address": "location address"
},
"coupon_code": "required in COPY_CODE Buttons"
}Message successfully queued. The message object is returned.