Example of template Message request:
{
"recipients": [
{
"phone_number": 380961111111,
"extra_id": "AD-6640-7006",
"name": "Michael",
"greeting": "Mr. "
},
{
"phone_number": 380962222222,
"extra_id": "AD-6640-7007",
"name": "Zoya",
"greeting": "Ms. "
}
],
"callback_url": "https://send-dr-here.com",
"start_time": "2020-12-12 10:10:10+03:00",
"tag": "Campaign name",
"channels": [
"viber"
],
"channel_options": {
"viber": {
"text": "Dear %greeting% %name%! Here is a Viber templated message for you",
"ttl": 60,
"device": "phone"
}
}
}
Example of non-template Message request:
{
"recipients": [
{
"phone_number": 380961111111,
"extra_id": "AD-6640-7006",
"name": "Michael",
"greeting": "Mr. "
},
{
"phone_number": 380962222222,
"extra_id": "AD-6640-7007",
"name": "Zoya",
"greeting": "Ms. "
}
],
"callback_url": "https://send-dr-here.com",
"start_time": "2020-12-12 10:10:10+03:00",
"tag": "Campaign name",
"channels": [
"viber"
],
"channel_options": {
"viber": {
"text": "Dear %greeting% %name%! Here is a Viber message for you",
"ttl": 60,
"device": "phone",
"img": "https://example.com/image.png",
"caption": "Click the button",
"action": "https://example.com"
}
}
}
Example of Viber Message request with “alpha_name” parameter:
{
"recipients": [
{
"phone_number": 380961111111,
"extra_id": "AD-6640-7006",
"name": "Michael",
"greeting": "Mr. "
},
{
"phone_number": 380962222222,
"extra_id": "AD-6640-7007",
"name": "Zoya",
"greeting": "Ms. "
}
],
"callback_url": "https://send-dr-here.com",
"start_time": "2020-12-12 10:10:10+03:00",
"tag": "Campaign name",
"channels": [
"viber"
],
"channel_options": {
"viber": {
"text": "Dear %greeting% %name%! Here is a Viber message for you",
"ttl": 60,
"device": "phone",
"alpha_name": "GMSU",
"img": "https://example.com/image.png",
"caption": "Click the button",
"action": "https://example.com"
}
}
}