Send WhatsApp template message

What are WhatsApp template messages?

Ensure that your templates meet Facebook's Message Template Guidelines.
Template messages are useful when you try to send the same type of message to a number of customers (notifications, remninders, etc.). You can also send them first to the customers even if you have never messaged the customer. And they don’t have the 24-hr reply window constraint as regular session messages do.
Below is an example to send a template message to a given WhatsApp number. Note the template has to be created and approved in your WhatsApp Manager, which is part of the Facebook Business Manager before sending. You can also contact us if you need help to create one.
​
1
curl
2
--request POST \
3
--url https://api.connectly.ai/v1/businesses/<business_id>/send/whatsapp_templated_messages \
4
--header 'Accept: application/json' \
5
--header 'Content-Type: application/json' \
6
--header 'X-API-Key: <YOUR_KEY_HERE>' \
7
--data '
8
{
9
"parameters": [
10
{
11
"name": "body_1",
12
"value": "value1"
13
},
14
{
15
"name": "body_2",
16
"value": "value2"
17
}
18
],
19
"number": "<WA_Number>",
20
"templateName": "<Template_name>",
21
"language": "en_US"
22
}'
Copied!
​
Copy link