Frequently Asked Question

Generate API for WhatsApp Templates
Last Updated 9 months ago

Introduction


Using the Alertspanel portal, you can now generate cURL requests directly. This will allow you to use the template messages externally with CRM or a website.

Setup


1. Generating cURL from Alerts Panel


a. Login to the Alerts Panel

b. Navigate to Broadcast > Message Templates > More Actions > Generate cURL

Note: This is available only for the approved templates.


image


c. After clicking the ‘Generate cURL’ option an API request box will be displayed.


image

d. Click on ‘Copy’ to save the API request in your clipboard. It can then be used on postman or shared with your technical team.


2. Importing cURL on Postman


a. Once the cURL is copied, open POSTMAN on your system.


image


b. Click the ‘import’ button in the ‘My Workspace’ section and select the ‘Raw text’ option.


image


c. Paste the cURL copied from the Alerts Panel into the text box.


image


d. Once you paste the cURL into the text box, click on the ‘Continue’ button.

e. Click on the ‘Import’ button once you verify the cURL file details.


image


f. Make sure you replace the following parameters before making the API call from your external system -

  1. "phoneNumber" (mandatory) - Add the phone number of the recipient
  2. "payload": "flow_"(for quick reply buttons) -Replace the flow key of the path.
  3. "filename"(for pdf files) - Name of the file being sent
  4. "link"(for pdf and image files) - URL link of the file
  5. "text"(for parameter values) - Replace text values for parameters in the template
  6. "API Domain" (https://api.alertspanel.com)
This website relies on temporary cookies to function, but no personal data is ever stored in the cookies.
OK

Loading ...