post https://tx.tracksend.co/whatsapp
Properties
Field | Type | Description | Required |
---|---|---|---|
to | array of strings | An array of recipients' phone numbers. | Yes |
templateCode | string | The template code for the Dynamic Whatsapp template. | Yes |
templateData | object | The value mapping of each variable added to the dynamic template e.g. {{firstname}} | |
callback | string | The callback URL to receive delivery status updates. | No |
metadata | string | Unique string |
Example
{
"to": ["07082632448"],
"templateCode": "w-744483959940383",
"templateData": {
"firstname": "John",
"lastname": "Doe",
"country": "Nigeria"
},
"callback": "http://example.com",
"metadata": "5693142g3h1234"
}
{
"to": ["07082632448","08188303092"],
"templateCode": "w-744483959940383",
"templateData": {
"firstname": "John",
"lastname": "Doe",
"country": "Nigeria"
},
"callback": "http://example.com",
"metadata": "5693142g3h1234"
}