Skip to main content

Steps to Onboard with MoEngage

This article describes the standard payload formats that MoEngage uses for sending WhatsApp template messages and standard callback formats for delivering callback information to MoEngage. WhatsApp partners should follow the steps mentioned below to onboard with MoEngage.
  1. Implement the payload formats for the request sent by MoEngage are shared in the Send message template section.
  2. Send the callback information to MoEngage in the format shared in the Message Status Callbacks section.
  3. Whenever inbound messages are sent to MoEngage, from quick reply buttons, follow the format shared in the Inbound Messages section.
  4. Share the API Endpoint and request headers to be used by the MoEngage team to complete the testing and onboard customers.

Send Message Template

This section details the message payload in the request sent by MoEngage to your API.

API Endpoint/URL

The API Endpoint or API URL of the partner to whom the message is being sent. This would be provided by the Whatsapp partner.

Sample Request Headers

You will have to share the information about the headers to be added to the request, such as the API Key, Workspace ID, Authentication, and so on. For example, if the Authentication to be used is Bearer Authentication, MoEngage will add the same in the Authorization Header in the Request, a sample for which is shown below.
Sample Header

Request Body

This is the request sent by MoEngage to your API.

Template Object

WhatsApp templates need to be pre-approved by WhatsApp to be used for sending messages. For more information, refer to WhatsApp Templates. The Template Object described in this section follows the same structure as that of the Template Object available in Meta’s WhatsApp Messages References. For more information, refer to Template Object in Messages.

Sample Payload

A Sample Payload for a request sent by MoEngage is shared below. Note that the sample payload will differ based on the template chosen.
Python

Sample cURL Request

Sample cURL

Expected Response

Error Codes

Sample response for a successful request

Throughput

We support a throughput of 60K to 200K RPM.

Message Status Callbacks

The format to be used for sending the message status in your callback response to MoEngage is described below.

Callback URL

The callback URL will be generated for every partner and would be in the following format:
Sample Callback URL

Authentication

Authentication is not required, and we will accept all valid requests that conform to the format mentioned in the section below.

Format for Callback Response

Inbound Messages

MoEngage supports incoming text messages for the following use cases:
  • When a user sends a STOP message for unsubscribing.
  • When a user replies using quick reply buttons to a WhatsApp message sent.
  • When a user replies by clicking on a button in the WhatsApp message sent.

Format for Inbound Messages

The format to be used for inbound messages to MoEngage is described below.\