Description Of The Request Parameters

Description of the request parameters

NameMandatoryDescription
Main   
1phone_numberYesPhone number of User.
▪It is given in the international format without the«+»sign.
2channelsYesList of Message delivery channels.
▪Any combination without duplicates, e.g.Viber + SMSorPush+ Viber+ SMS.
3channel_optionsYesHave to be specified for each communication channel.
4messagesYesThe list of phonenumbers of Users and texts will be transmitted to all communication channels.
▪For batch request.
5recipientsYesList of parameters for personalized campaign.
▪For broadcast request.
6extra_idNoExternal identifier of the Message(specified by you).
▪Maximum length: 64 characters.
7callback_urlNoMessage reports will be sent to this URL.
▪Maximum length: 256 characters.
8start_timeNoScheduled date of campaign start.
▪Shall be specified in the following format: “YYYY-MM-DD hh:mm:ss±hh:mm
▪If the difference with time according to Greenwich Mean Time (in the format +03:00) is not specified, then the difference according to Kyiv time is calculated.
9tagNoCampaign name.
▪Maximum length: 64 characters.
Viber channel parameters   
10textNoViber Message text.
▪Text requirements – up to 1000 characters (Cyrillic and Latin).
11ttlYesMessage lifetime in seconds:
▪Viber: 40..86400
12deviceNoSelection of devices for delivery Messages (only for Viber ID 1way).
▪”all” – delivery to all devices;
▪”phone” – delivery only to smartphones.
If this parameter is not specified, then the parameter takes the value from the settings on CPaaS web-interface.
13alpha_nameNoValue of field alpha_name specifies Viber service. Link of alpha_name to Viber service is set on GMS side.
14imgNoURL of an image on the Internet.
▪Maximum length: 256 characters.
15captionNoName of caption.
▪Maximum length:30 characters.
16actionNoURL inside the button. Maximum length: 256 characters. You can utilize this if you wish to direct a User to the following:
▪Direct a User to the Web page:”http://example.com”
▪Start Viber call. Opens the Viber keypad with the phone number that you entered in the request:”viber://keypad?number=380961111111”
▪Start a call. Opens the phone number, that you entered in the request:”tel:+380961111111”
▪Open a 1on1 chat -Opens a 1on1 chat with the sender (the sender needs to have a 2way account):”viber://chat?service=3016”
▪Open Viber QR scanner. Opens a QR scanner through Viber. Tapping the button will open the camera to capture a QR code:”viber://more/qr”
SMS channel parameters   
17textYesSMS Message text.
▪Text requirements – Cyrillic characters (up to 335 characters), Latin characters (up to 765 characters)
18ttlYesMessage lifetime in seconds:
▪SMS: 300..259200
19alpha_nameYesAlphanumeric name.
▪Maximum length is 11 characters, may begin with a number.
▪Alphanumeric name may consist of GSM 7 bit default alphabet table characters only
WhatsApp channel parameters   
20textNoWhatsApp Message text.
▪Text requirements – up to 1000 characters (Cyrillic and Latin)
21ttlYesMessage lifetime in seconds:
▪WhatsApp: 604800
22imgNoURL of an image on the Internet.
▪Maximum length: 256 characters
23img_nameNoText under the image.
▪Maximum length: 1000 characters
24docNoURL of a file on the Internet.
▪Maximum length: 256 characters
25doc_nameNoText under the file.
▪Maximum length: 1000 characters
26audioNoURL of an audio on the Internet.
▪Maximum length: 256 characters
27videoNoURL of a video on the Internet.
▪Maximum length: 256 characters
28video_nameNoText under the video.
▪Maximum length: 1000 characters
29latitudeNoLatitude coordinates.
▪Numeric value from -90 to 90
30longitudeNoLongitude coordinates.
▪Numeric value from 0 to 180
Pushchannel parameters   
31textYesPush Message text.
▪Text requirements – up to 1000 characters (Cyrillic and Latin)
32ttlYesMessage lifetime in seconds:
▪Push: 30..86400
33titleYesTitle of Message.
▪Maximum length: 20 characters
34imgNoURL of an image on the Internet.
▪Maximum length: 256 characters
35captionNoName of caption.
▪Maximum length: 30 characters
36actionNoURL inside the button.
▪Maximum length: 256 characters

Description of the response parameters

NameDescription
1message_idMessage identifier.
▪Set in UUID format
2phone_numberUser’s phone number.
▪It is given in the international format without the «+» sign
3extra_idExternal identifier of the Message (specified by you).
4job_idCampaign identifier.
▪Set in UUID format
5error_codeError code.
▪The list of codes is provided in the Statuses section
6error_textShort description of the error code.
7processedBoolean value (true/false).
▪It is “true” only if the Message is being processed
▪It is “false” if processing of the Message has not been started
8acceptedBoolean value (true/false).
▪It is “true” only if the Message is accepted by platform
▪It is “false” if the Message is rejected by platform

Description of Message delivery report parameters

NameDescription
1number
phone number
User’s phone number.
▪It is given in the international format without the «+» sign
2timeUnix time stamp for the last action of a communication channel.
3message_idMessage identifier.
4extra_idExternal identifier of the Message (specified by you).
5statusSimplified status of the Message.
▪The list of statuses is provided in the Statuses section
6substatusExtended Message status.
▪The list of statuses is provided in the Statuses section
7hyber_statusDetailed Message status.
▪The list of statuses is provided in the Statuses section
8sent_viaThe last channel of Message delivery.
▪If Message is blocked by the Platform – the value of the field is “hyber”
9total_sms_partsThe total number of parts of the SMS-Message.
10delivered_sms_partsNumber of delivered parts of SMS-Message.
▪If there is no Message sent to SMS channel, this parameter is missing
11matching_template_idMatching Template ID, which specifies the Viber template number.
▪If the Message does not match any template – the value in this field is 0
12status_textShort description of the status of the Message.
13error_textShort description of the error.
14error_codeError code.
▪The list of codes is provided in the Statuses section
15processedBoolean value (true/false).
▪It is “true” only if the Message is being processed
▪It is “false” if processing of the Message has not been started
16acceptedBoolean value(true/false).
▪It is “true” only if the Message is accepted by platform
▪It is “false” if the Message is rejected by platform
17last_partnerThe last channel of Message delivery.
▪If the Message is accepted but has not got final status or it is blocked by the Platform – the value of the field is “hyber”
▪For a detailed report (advanced), this parameter is specified for each communication channel
18delivered_viaThe last channel of Message delivery.
▪If the Message is accepted but has not got final status or it is blocked by the Platform – the value of the field is “hyber”
19startedBoolean value (true/false).
▪It is “false” if processing of the Message either has not started or started with delay
20processingBoolean value (true/false).
▪It is “true” only if the Message is being processed
▪It is “false” if processing of the Message either has not been started or already ended
21channelMessage sending channel.
22ttlMessage lifetime in seconds for each of channels.

Description of User reply parameters

NameDescription
1phoneUser’s phone number.
▪It is given in the international format without the «+» sign
2timeUser’s reply date and time.
▪According to Kyiv local time for Viber User replies
▪UTC+0 for WhatsApp User replies
3channelThe communication channel
4message_idThe Message identifier to which the User replies.
▪Set in UUID format
5extra_idExternal identifier of the Message to which the User replies
6text_to_subscriberText of Message, to which the User replies
7text_from_subscriberUser’s text reply.
8umidTransport ID of the sent Message, to which the User replies.
▪Set in UUID format
9image_urlLink of shared image.
▪For example: “https://example.com/image.png”
10video_urlLink of shared video.
▪For example: “https://example.com/video.mp4”
11audio_urlLink of shared audio.
▪For example: “https://example.com/audio.mp3”
12doc_urlLink of shared file.
▪For example: “https://example.com/file.docx”
13locationLink of shared location.
▪For example:”50.450248718262,30.523889541626”