Get Message Templates

get
Get Message Templates

https://api.cakes.com/api/v1/getMessageTemplates/v1/cakes/:id
This endpoint allows you to get message templates
Request
Response
Request
Headers
authorization
required
string
Authorization Token
Response
200: OK
{
"result": "success",
"messageTemplates": [
{
"id": "5f6c8dddff755f4683a71693",
"elementName": "onboarding_message_v7",
"category": "ACCOUNT_UPDATE",
"hsm": "",
"hsmOriginal": "",
"status": "APPROVED",
"language": {
"key": "English (US)",
"value": "en_US",
"text": "English (US)"
},
"lastModified": "2020-09-24T12:20:03.99Z",
"type": "template",
"header": {
"type": 1,
"typeString": "text",
"text": "Welcome to WATI",
"link": null,
"headerOriginal": "Welcome to WATI",
"headerParamMapping": null
},
"body": "Hi {{1}} Welcome to WATI 😀\n\n1. In order to test the WATI SandBox, please login in using one of the platforms below.\n\na. iOS: https://apple.co/2W45Tkd\nb. Android: https://bit.ly/3c32vLF\nc. Desktop Web version: https://{{2}}.wati.io\n\nFor the Mobile App, please type \"{{2}}\" in the login *domain* for SandBox\n\n2. To test sending message to WATI SandBox, please click the link below to send the first whatsapp message 💬 to the WATI SandBox.\n\n{{3}}\n\n3. If you would like to use your own WhatsApp number ✅ for WATI after the 14 days trial, an upgrade with subscription is required.\n\nJoin our community (https://bit.ly/WATIGroup) to get tips & information on WhatsApp Business API\n\n_Please note that onboarding process normally takes 2-3 weeks including approval time from Facebook_\n\nThank you\n\nCrystal Tai, WhatsApp Business Setup Expert",
"bodyOriginal": "Hi {{1}} Welcome to WATI 😀\n\n1. In order to test the WATI SandBox, please login in using one of the platforms below.\n\na. iOS: https://apple.co/2W45Tkd\nb. Android: https://bit.ly/3c32vLF\nc. Desktop Web version: https://{{2}}.wati.io\n\nFor the Mobile App, please type \"{{2}}\" in the login *domain* for SandBox\n\n2. To test sending message to WATI SandBox, please click the link below to send the first whatsapp message 💬 to the WATI SandBox.\n\n{{3}}\n\n3. If you would like to use your own WhatsApp number ✅ for WATI after the 14 days trial, an upgrade with subscription is required.\n\nJoin our community (https://bit.ly/WATIGroup) to get tips & information on WhatsApp Business API\n\n_Please note that onboarding process normally takes 2-3 weeks including approval time from Facebook_\n\nThank you\n\nCrystal Tai, WhatsApp Business Setup Expert",
"footer": "WATI.io by Clare.AI",
"buttons": [
{
"type": "url",
"parameter": {
"text": "Visit Website",
"phoneNumber": "",
"url": "https://wati.io",
"urlOriginal": null,
"urlType": "static",
"buttonParamMapping": null
}
}
],
"buttonsType": "call_to_action"
}
]
}