Skip to content
Discussion options

You must be logged in to vote

This is supported, but the PDF is in the wrong field. header_params is only used for variables in a text header, so it does not create the document component Meta expects.

Use header_media_url and 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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PradeepRGupta
Comment options

Answer selected by PradeepRGupta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants