Send message via Viber
Last updated
Last updated
This endpoint is used to send Viber messages by individually or with bulk requests.
It is ideal to send the personalized messages for use-cases like notifications, alerting or marketing for example.
POST
https://rest.esms.vn/MainService.svc/json/Send_Multiple_Sms_OTT/
Content Type: application/json
Response Type: application/json
Request body
ApiKey
string
Your API Key.
SecretKey
string
Your Secret Key.
Brandname
string
The name of the sender is shown in the header of the customer's message. Pre-registration is required.
SmsType
number
Message type: 23: OTT message via Viber.
Content
string
The personized or marketing content.
OttImgUrl
string
The URL of image. The schema has to be https.
OTTLabel
string
The label of button.
OttUrl
string
The redirect URL when clicking to the button.
Phones
Array
The list phone number of receivers.
IsSandBox
number
Sandbox option value (default is 0): 1: For testing purpose to verify the validation of the request. Message is not charged and sent to the receiver. 0: Message will be processed to the receiver properly.
Note:
Sending the message via Viber, there are 4 sending options can be used:
Text - Image - Button
Content OttImgUrl OttUrl OTTLabel
Text - Button
Content OttUrl OTTLabel
Image
OttImgUrl
Text
Content
Response:
Valid request.
Response body
CodeResult
string
Response code.
SMSID
string
The message id eSMS system.
ErrorMessage
string
The error message if the request is invalid.
The detail of error code can refer at Table of error codes .
Get the sample of code for programing languagues to use in Postman refer at Link of code samples.