Skip to main content

How do I send a template message using the API?

Comments

8 comments

  • Juan Souteras

    How can I specify the name of the document in a template message?

    1
  • Kauntal Patel

    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

    Great! I will try it.

    Thanks!

    0
  • Hafizh Fauzan

    Hi, when i tried the CURL, it says "Mapped Bot Not Found", is there any solution with this? Thanks

    4
  • Satya B

    Is it solved Hafizh Fauzan?

    0
  • María Citlali Hernández Escareño

    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.

     

    1
  • Almashines India

    In reply to @Hafizh Fauzan,

    In case of error message "Mapped Bot Not Found", try adding src.name param in curl request.

    0
  • varshitha s

    @María Citlali Hernández Escareño
    Did u solve ua issue ?
    if yes can u please tell, i'am dealing with similar issue

    0

Please sign in to leave a comment.