This document details the Send Template Message API with which you can send template messages from your CRM or any custom software or tool.
The Send Message API endpoint and payload are tailored to each approved template message in your account. To send messages via the API, you’ll need to generate an API endpoint for the specific template you want to use.
When a template's CTA includes a dynamic URL, you must provide the string to append to the static portion of the URL. Pass this value in the same way as dynamic variables within the template message.
API responses and Error codes
When you submit a Send Template Message API request to the Emovur server, we validate, process, and forward the request to Meta. We then provide an acknowledgment based on Meta's response. Upon successful submission, you will receive a response message. See the sample below:
If the message submission fails, an error message and code will be returned. You can refer to the Error Codes Documentation for detailed information on specific errors.
If the submission to the Emovur server is invalid or contains missing parameters, an error message will be returned as shown below.
Error Message
Description
The receiver field is required
Number format : <countrycode><mobile number>
Example:
Country code : +91
Mobile Number : 7411223344
Should be structured as +917411223344
The media url field is required
The values.n field is required
The value for dynamic variables in the message body or for the dynamic URL is missing.