Engati - User Guide
...
Simplified Broadcast
Template Message
Generate API for WhatsApp Templates
5min
the generate api creates a curl command with your template details that you can execute to send messages you can integrate this into any external system or process that supports making api calls previously, users had to manually convert template details into a wrapper api payload, making the process cumbersome this enhancement is built for sharechat, enabling them to fetch the template curl directly by providing the template name this automation eliminates the need for manual conversion, making template execution in the wrapper api seamless instead of only sending through engati's dashboard, developers can build customized tools for managing templates at scale the automation capabilities open many possibilities to connect messaging to external workflows availability availability it is available for shopify and non shopify accounts with the selected whatsapp provider as 360dialog setting up setting up for setting up your whatsapp template using api, follow the steps mentioned below generating curl from engati portal step 1 navigate to broadcast > message templates > more actions > generate curl note this is available only for the approved templates step 2 after clicking the ‘generate curl’ option an api request box will be displayed step 4 click on ‘copy’ to save the api request in your clipboard it can then be used on postman or shared with your technical team importing curl on postman step 1 once the curl is copied, open postman on your system step 2 click the ‘import’ button in the ‘my workspace’ section step 3 paste the curl copied from the engati portal into the text box step 4 once you paste the curl into the text box, click on the ‘continue’ button step 5 click on the ‘send’ button once you verify the curl file details step 6 make sure you replace the following parameters before making the api call from your external system phonenumber(mandatory) add the phone number of the recipient "payload" "flow \<flow key>" (for quick reply buttons) replace the flow key of the path click here for more details "filename" (for pdf files) name of the file being sent "link" (for pdf and image files) url link of the file "text" (for parameter values) replace text values for parameters in the template this is how you can generate apis for whatsapp templates as it provides the flexibility to use whatsapp templates in a programmatic, integrated manner you gain more control and customization for your messaging operations if you face any issues or queries please reach out to us at support\@engati com