Kaleyra WhatsApp Integration with MoEngage

GET Method

This page covers the following topics:

Create WhatsApp Campaign through Kaleyra using MoEngage

To create a WhatsApp campaign through Kaleyra.io using MoEngage, perform the following steps:

  1. On the MoEngage dashboard, navigate to Engage.
  2. Go to Campaigns, Create Campaign, and then Connectors.
  3. Click Create Custom Connector. Update campaign information and segment data.
  4. In the Request Limit section, enter the number of requests per minute.

📘

Note:

The maximum number of requests per minute is 3500.

POST Method

  1. Select the POST method for Kaleyra SMS integration.
  2. In the Input field, enter the Webhook URL of Kaleyra WhatsApp as in the example URL.

📘

Example URL:

https://api.kaleyra.io/v1/SID/messages

  1. Add the SID (Security Identifier) in the above request from your Kaleyra account. For more information on generating an API key, see Generating an API Key. To view the API Key and the SID, see View API Key and SID.

  1. Select the Headers section to add the following keys and their corresponding values.
KeyValue
api-keyAc4XXXXX21f
Content-Typeapplication/x-www-form-urlencoded
  1. Select the URL Parameters section to add the following keys and their corresponding values. Select the content type as form-urlencoded.
KeyValue
channelWhatsApp
to{{UserAttribute['Mobile']}} (Use @ mobile)
fromAdd Approved WhatsApp Business Number
typetemplate
template_nameAdd Template Name Registered on Facebook
lang_codeAdd Language registered on Facebook.
Example - en
template_parameters"Parameter 1", "Parameter 2"
callback_urlAdd callback URL here
  1. Click Test Campaign to preview the configuration.
  2. Click Save to save the settings.

GET Method

  1. Select the GET method for Kaleyra SMS integration.

📘

Note:

For the GET method, the body should always be URL encoded.

  1. Select the Authentication tab and add the HTTP API endpoint as in the example URL.

📘

Example URL:

https://api.kaleyra.io/v1/SID/messages?channel=whatsapp&to=%XX%XXUserAttribute%XX'Mobile'%XX%XX%XX&from=&type=template&template_name=template Name&XXXX_XXXX=en

  1. In the Headers section, add the following key and their corresponding value:
KeyValue
api-keyAc4XXXXX21f
Content-Typeapplication/x-www-form-urlencoded
  1. Select the URL Parameters section to add the following keys and their corresponding values. Select the content type as form-urlencoded.
KeyValue
SIDGenerating an API key. To view the API Key and the SID, see View API Key and SID.
Sender IDCreating Sender ID
Type(Indian Customer - OTP/MKT/TXN; Non-Indian Customers - Default)
  1. Click Test Campaign to preview the configuration.
  2. Click Save to save the settings.