post
https://www.fast2sms.com/dev/whatsapp///message_templates
Create a template with URL buttons. You can mix Dynamic URLs (containing variables like {{1}}) and Static URLs.
Example Request Body
{
"name": "TEMPLATE_NAME",
"language": "en",
"category": "MARKETING",
"components": [
{
"type": "BODY",
"text": "Hi {{1}}, This is test template",
"example": {
"body_text": [
[
"John"
]
]
}
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "URL",
"text": "Dynamic Link",
"url": "[https://www.example.com/](https://www.example.com/){{1}}",
"example": "[https://www.example.com/test](https://www.example.com/test)"
},
{
"type": "URL",
"text": "Static Link",
"url": "[https://www.example.com](https://www.example.com)"
}
]
}
]
}