Repository navigation
Template API not supporting Document media header — Error 132012 #536
|
Hi team, Getting error 132012 when sending a template that has a Document media header Error: Template structure:
Request I'm sending: Is there a way to pass a document URL for a media header template |
Replies: 1 comment 1 reply
|
This is supported, but the PDF is in the wrong field. Use {
"phone_number": "919876543210",
"template_name": "invoice_notification",
"header_media_url": "https://your-cdn.com/invoice.pdf",
"header_media_filename": "invoice.pdf",
"template_params": {
"1": "John Doe",
"2": "ORD-98765"
}
}Whatomate will download the URL, upload the file to WhatsApp, and send the resulting media ID as a document header. The URL needs to be reachable from the Whatomate server and return an appropriate content type. If your installation does not recognize |
This is supported, but the PDF is in the wrong field.
header_paramsis only used for variables in a text header, so it does not create the document component Meta expects.Use
header_media_urland include the filename explicitly:{ "phone_number": "919876543210", "template_name": "invoice_notification", "header_media_url": "https://your-cdn.com/invoice.pdf", "header_media_filename": "invoice.pdf", "template_params": { "1": "John Doe", "2": "ORD-98765" } }Whatomate will download the URL, upload the file to WhatsApp, and send the resulting media ID as a document header. The URL needs to be reachable from the Whatomate server and return an appropriate content type.
If yo…