Generate API for WhatsApp Templates

Introduction

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

Availability

It is available for Shopify and Non-shopify accounts with the selected WhatsApp provider as 360dialog.
Navigate to Broadcast > Message Templates > More Actions > Generate cURL

Setup

Generating cURL from Orai Portal

a. Login to the Orai portal

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

Note: This is available only for the approved templates.

AD 4nXfQ3H COMQZ06mNDWpTlIdZ1wMCbznBR7Wxg6rln U UZOxubfNBDWOCuYR VBV5qdg 3FCBDb3MkOdiiMWRXvbnjmrTx03YVUiHw3JZpLd1EgfOOwqlbcogVhY8NoWtmaOuTbFJiCs40hg2iAGGL0GzOQSwZ5oqkCUrY9b?key=wtvEGCIEUYON2m4LmKZIfw

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

AD 4nXfYiTQ1KzsMz9k7LU6z9jcGrJlFy5lyh DDvKxs ZDevd X0Nw Hg4MVDIygJa 9nbuN EezrK7nKjXw5BKHQKktugqu MRN8LnB4haNFiO6q YW1QGKbKrDBb3XauYRFWD8Pd47uJ ErK WxZDfKD86ZayC4KzF6R2toVz?key=wtvEGCIEUYON2m4LmKZIfw

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.

Importing cURL on Postman

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

Document image

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

Document image

c. Paste the cURL copied from the Orai portal into the text box.

Document 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.

Document image

f. 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

 

Table of Contents
Shopping Cart