Send Template Message

post
Send Template Message

https://api.cakes.com/api/v1/sendTemplateMessage/{whatsapp_number}
This endpoint allows you to send template message
Request
Response
Request
Path Parameters
whatsapp_number
required
string
WhatsApp Number
Headers
authorization
required
string
Authorization Token
Form Data Parameters
parameters
required
string
Parameters ( input_format : [{'name':'param1', 'value':'value1'}, {'name':'param2', 'value':'value2'}] )
template_name
required
string
Template Name
broadcast_name
required
string
Broadcast Name
Response
200: OK
{
"result": "success",
"phone_number": "xxxxxxxxxxxx",
"template_name": "order_shipped",
"parameteres": [
{
"name": "name",
"value": "John"
},
{
"name": "sellername",
"value": "Amazon"
},
{
"name": "email",
"value": "[email protected]"
}
],
"broadcast": {
"id": "5f6dd411ba7427b03cda5fb5",
"broadcastName": "shipping",
"templateId": "5f60adfaac0ab4df2f98e178",
"created": "2020-09-25T11:27:13.362296Z",
"lastUpdated": "2020-09-25T11:27:13.3622961Z",
"scheduledAt": "2020-09-25T11:27:13.3622961Z",
"ttl": 0,
"status": 1,
"errorCode": 0,
"cronId": null
},
"contact": {
"id": "5e93eb01e9536d000103fc25",
"wAid": "xxxxxxxxxxxx",
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"phone": "xxxxxxxxxxxx",
"source": null,
"contactStatus": "VALID",
"photo": null,
"created": "04-13-2020",
"tags": [],
"customParams": [
{
"name": "name",
"value": "John"
},
{
"name": "phone",
"value": "xxxxxxxxxxxx"
},
{
"name": "John",
"value": null
},
{
"name": "sellername",
"value": "Amazon"
},
{
"name": "email",
"value": "[email protected]"
}
],
"optedIn": false,
"isDeleted": false,
"lastUpdated": "2020-09-23T05:55:01.474Z",
"allowBroadcast": true,
"allowSMS": true,
"teamIds": [
"5f461b9a0a3ff75b397b99d2"
]
},
"model": {
"ids": [
"5e93eb01e9536d000103fc25"
]
}
}