apiId. If your account has a list of allowed IP addresses, the call must come from one of them.GET /api/partners/viber-senders), the id of a code template (GET /api/partners/viber-otp-templates) and enough balance.templateParams must hold a value for every parameter of the chosen template. pin is always required. Values the template does not use are ignored.phoneNumber is + and digits only, and it must be in a country your sender is allowed to send to.templateLang chooses the language of the message. A language that is not supported gives English.data[0].ids[0] is the id of the send. To see the result, call POST /api/partners/viber-data-records/list with a filter on campaignId equal to that id.OTP Template is not found, Sender is not found, Invalid phone number or Insufficient balance. If the send itself cannot be made, the call answers 424 with Failed to send the message.curl --location 'https://api.veloconnect.me/api/partners/viber-otp' \
--header 'apiId: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "Primary",
"templateId": 3,
"senderId": 57,
"phoneNumber": "+37491234567",
"templateParams": {
"pin": "482913",
"businessPlatformName": "Example LLC"
},
"templateLang": "en"
}'{
"data": [
{
"succeeded": true,
"ids": [
1043
],
"strIds": null,
"errors": null
}
]
}