post
https://www.fast2sms.com/dev/whatsapp///message_templates
Create a template with a media header (Image, Video, or Document). You must provide a valid header_handle for the media sample.
Example Request Body
{
"name": "TEMPLATE NAME",
"language": "en",
"category": "UTILITY",
"components": [
{
"type": "HEADER",
"format": "DOCUMENT",
"example": {
"header_handle": [
"4::YXBwbGljYXRpb24vcGRm:ARbRac-7KRV919yIfV5nBwdQ7Gg6EQUyWW_BF8TMpBD_vQES-jRDnh_ljDxHQYqm5blYGoXD1jWowPkPTlQ2Pr2XZwOHoFTW2VM5l2EDBkGQBA:e:1705221283:256725303808337:100052252050649:ARa0nL2E0drGk4fXSCs"
]
}
},
{
"type": "BODY",
"text": "Hello {{1}}. Your account is now LIVE, enjoy our services!",
"example": {
"body_text": [
[
"Name"
]
]
}
}
]
}