Cascading Message Sending#
Cascading message sending is the sequential sending of a message via different channels over the message’s lifetime.
The message is resent in case of receiving a status indicating that the message was not successfully sent.
Cascading message sending is not available by default. To enable it, the Partner must contact their supervising manager.
The service supports the following types of cascading message:
FlashingCall;
Push;
SMS;
Viber;
VK;
WhatsApp.
When sending, it can be any sequence of message types.
The order and options for such resending can be configured on the Service Provider’s side at the request of the Partner. In this case this additional sending of messages performs with the default parameters, and no additional parameters need to be passed in the request body.
It is possible to pass the desired cascade options using additional parameters of the HTTP request.
Request Parameters#
Possible parameters of the HTTP request for cascade message resending.
Parameter Name |
Type |
Description |
|---|---|---|
order_list |
string |
Parameter that defines the sequence of message sending. More detailsMessage types should be listed in the order they are to be sent. Possible values (case insensitive):
Example: |
<type>_resendCond |
string |
Parameter that defines the conditions for triggering a resend. More details
Here <type> is a character that defines the type of message ( Possible values (case insensitive):
Important The value Using a combination of parameters, various settings can be defined for different types of messages.
Example 1. Standard values with arbitrary order of message types:
In this case, a resend will be performed to VK if the status
Example 2. In this case, only the first message of the cascade (Flashing Call)
will be sent:
The cascaded SMS will not be sent, as the triggering of a cascade AFTER the
Flashing Call message is prohibited ( |
<type>_resendSn |
string |
Parameter that defines the service names from which messages will be sent in resend mode. More details
Here <type> is a character that defines the type of message (
Example.
The service names used must be available for the Partner. To use service names, please contact your account manager. |
<type>_resendText |
string |
Parameter that defines the alternative message text for different types of messages that will be sent in resend mode. More details
Here <type> is a character that defines the type of message (
Example:
The message text is subject to the same restrictions as the corresponding types of individual messages (see the relevant sections “Request Parameters”). |
<type>_resendValid |
string |
Parameter that defines the lifespan for different types of messages sent in resend mode. More details
Here <type> is a character that defines the type of message ( The lifespan means the interval during which the operator will attempt to deliver the message to the recipient. If the message lifespan has expired and the message has not been delivered, it will no longer be delivered to the recipient. Acceptable lifespan ranges for different types of messages:
The value format for the parameter is
Possible values for
Example 1. In the absolute time format 29.04.2025 22:00:00 (GMT+3) is encoded as
Important In the absolute format
The
The values for tenths of a second (
Example 2. For a message lifespan of 3 minutes relative to the current time, the
format is Absolute time format
The default format. The scheduled resending time and message lifespan expiration are
specified in the global UTC format, including a quarter-hour offset and a direction
symbol ( Relative time format
Relative time can be specified by setting the UTC orientation flag to |
shorten_list |
string |
Parameter designed to control the shortening of links in various types of cascaded messages. More detailsImportant This parameter will only be processed if the
The value of the
Possible values (case insensitive):
Example: By default, the Link Shortening Service is not available. To enable it, please contact your account manager. |
Note
Example of the sequence for a configured cascading message sending: VK → Viber → SMS.
- The message will be sent into VK.
- If the message is successfully delivered, the cascading is completed (go to step 6).
- If the message is not delivered due to an error or within the specified time to live, the message will be resent via Viber.
- If the message is successfully delivered, the cascading is completed (go to step 6).
- If the message is not delivered due to an error or within the specified time to live, an SMS message will be sent.
- The Partner receives the final status of message sending (optionally - all intermediate statuses).