How do I send a template message using the API? Gupshup February 10, 2022 14:43 Updated You can send an approved template message using the send message API. Click here to refer API document. Related articles Is there an API to check my account's wallet balance? How to get a verified tick? How will my display name show to end users? Why do I get a "Media URL Not Whitelisted" error? How do I whitelist a media URL? Can i send image/video/audio/document with caption? How do I block a spam user? Is there an API for blocking users for sending spam messages? Comments 7 comments Sort by Date Votes Juan Souteras December 02, 2021 15:35 How can I specify the name of the document in a template message? 1 Kauntal Patel December 06, 2021 15:22 Hi Juan, We have updated the CURL given in this FAQ. For your direct answer, here is the payload: {"type":"document","document":{"link":"https://www.buildquickbots.com/whatsapp/media/sample/pdf/sample01.pdf","filename": "Sample funtional resume"}} 1 Juan Souteras December 06, 2021 15:30 Great! I will try it. Thanks! 0 Hafizh Fauzan December 14, 2021 09:59 Hi, when i tried the CURL, it says "Mapped Bot Not Found", is there any solution with this? Thanks 3 Satya B February 11, 2022 10:50 Is it solved Hafizh Fauzan? 0 María Citlali Hernández Escareño February 19, 2022 01:27 Hi when I try to use the new template messaging API I am getting the next error: payload: { code: 1008, reason: "Required parameter is missing:Missing mandatory parameter 'to'" }But I can't find nothing related to "to" parameter in https://www.gupshup.io/developer/docs/bot-platform/guide/whatsapp-api-documentation#templateAPIEndpointThanks and I appreciate any help. 1 Almashines India April 26, 2022 11:37 In reply to @Hafizh Fauzan, In case of error message "Mapped Bot Not Found", try adding src.name param in curl request. 0 Please sign in to leave a comment.
Comments
7 comments
How can I specify the name of the document in a template message?
Hi Juan,
We have updated the CURL given in this FAQ.
For your direct answer, here is the payload:
Great! I will try it.
Thanks!
Hi, when i tried the CURL, it says "Mapped Bot Not Found", is there any solution with this? Thanks
Is it solved Hafizh Fauzan?
Hi
when I try to use the new template messaging API I am getting the next error:
payload: {
code: 1008,
reason: "Required parameter is missing:Missing mandatory parameter 'to'"
}
But I can't find nothing related to "to" parameter in https://www.gupshup.io/developer/docs/bot-platform/guide/whatsapp-api-documentation#templateAPIEndpoint
Thanks and I appreciate any help.
In reply to @Hafizh Fauzan,
In case of error message "Mapped Bot Not Found", try adding src.name param in curl request.
Please sign in to leave a comment.