Updates
- Added new API methods for sending messages by template ID:
api/v1/out-messages/whatsapp/template
— for sending messages to the WhatsApp channel;api/v1/out-messages/viber/template
— for sending messages to the Viber channel.
Consider the features:- Old method. Previously, only one method was available for sending messages —
api/cascade/schedule
. This method specifies the content of the message to be sent to the recipient. The content is checked for compliance with the template when the message is sent. There is a risk that the content will not pass verification, in which case the message will either not be sent or will be sent using a different template at a higher cost.
Sending Messages - New methods. The new version of the API has two additional methods:
api/v1/out-messages/whatsapp/template
andapi/v1/out-messages/viber/template
. Rather than specifying the message content, they use the template identifiertemplateId
to indicate which template the message should be sent to. This eliminates the above-listed risks and simplifies integration.
Sending Messages by Template ID
Despite the release of additional methods for sending messages by template ID, we will continue to support theapi/cascade/schedule
method.
- Changed the mechanism for debiting funds for AMAU. Previously, if there were not enough funds in the account to cover the full AMAU amount, we incurred debt but did not write off the money. Now, if this happens, we will write off the full AMAU amount, even if it results in a negative balance.
Consider the new mechanism when sending messages and managing your balance. - Added a new callback about changing the category of the WhatsApp template. Now, if Meta changes the template category, edna Pulse will send not only an email and UI notification about this event, but also a callback about changing the template category. Most often, Meta can change the category of a template when registering it.
Callback about Changing WhatsApp Template Category
Fixes
Fixed an error in counting characters when registering a WhatsApp template. Now you can easily register WhatsApp templates with a large number of characters.
How to Create a WhatsApp Operator Template and Submit it for Registration