Skip to main content
The MoEngage Inform API allows you to send a transactional alert to a user on one or more channels using a pre-configured Alert ID or Alert Reference Name.

Supported Scenarios

Transactional Alerts are designed for critical user communications, including:
  • Order/Booking/Purchase confirmations
  • Shipping/Delivery confirmations and updates
  • Security and account alerts
  • Password resets
  • OTP (one-time password)
  • User invitations and shares
  • User inaction related to previous transactions
  • Fraud prevention/security alerts
This API sends notifications to all the channels simultaneously for a specified Live Alert. You can use it to do the following:
  • Send a transactional message on a single channel like SMS or Email or Push.
  • Send transactional messages on multiple channels.

Endpoint

The Inform API consists of the following endpoint:

Glossary

The following is a list of terminology that you will encounter when using the Inform API.

Live vs. Test Environments

Ensure you are using the correct ID and Endpoint for your environment.

How Does Inform API Work and Respond?

Inform API works in two steps as described below:
  1. A check is performed to verify if the API request received for Inform is valid.
  2. If valid, the second process is to resolve the content and send a message using the partner.

Response Codes

The response codes are shared in wxyzab format as described below:
  • w - Status (failures are indicated with 1 and success is indicated with 2).
  • x - Category of the error.
  • y - Request is considered for parallel request (parallel requests is indicated with 0 and fallback requests are indicated with 1).
  • z - Can this request be retried by you(0 indicates it cannot be retried with same details).
  • ab - Reason details for the error.
Below are the Category details: The Reason details are given below with each Reason Code holding specific meanings:

Payload Errors Before Accepting the API Request

The list of the payload errors that can occur before accepting the API request and the equivalent response codes to be shared under HTTP status code 4xx for different scenarios across each functionality is given below:

Payload Errors After Accepting the API Request

Alerts can be configured for parallel/sequential fallback as described below:
  • Parallel: For parallel requests, the payload information of success/failure requests should be added at each channel level.
  • Sequence: For fallback requests, the payload information of success/failure requests should be added for the first channel, and other channels, info should be shared over streams.
The list of the payload details that can occur after accepting the API request and the equivalent response codes to be shared under HTTP status code **200/429 **for different scenarios across each functionality is given below:

FAQs

A request is deemed a duplicate in the following cases:
  • It is received within 5 minutes of a previously successful request containing the same transaction_id
  • It is received within 5 minutes of a previous request which is ‘In Progress’ (being processed) and contains the same transaction_id
Duplicate requests are dropped and not reprocessed.
When the vendor does not accept requests from MoEngage, MoEngage retries every request a maximum of five times with 200ms exponential backoff.
Alert logs are stored for up to 30 days for every Alert in MoEngage.
This error occurs when you hit the live alert ID at the sandbox endpoint. For every alert, there are 2 IDs: one is live, and another is Test; the same behavior can be seen for alerts created on the test environment of the MoEngage Dashboard as well. Test Alert ID can be picked up by editing the Alert and going to the 3rd page.

Postman Collection

Test these endpoints quickly by importing our Postman collection: View in Postman