POST /api/partners/viber-otp.apiId. If your account has a list of allowed IP addresses, the call must come from one of them.englishMessage shows the text in English, with each parameter in double braces. parameters lists the values you must send in templateParams: the key {{pin}} means the field pin, {{businessPlatformName}} means businessPlatformName, and so on.id comes back as text; send it as a number in templateId.curl --location 'https://api.veloconnect.me/api/partners/viber-otp-templates' \
--header 'Accept: application/json' \
--header 'apiId: <api-key>'{
"data": [
{
"id": "1",
"name": "Basic OTP",
"englishMessage": "Your code is {{pin}}.\r\nPlease don't share your code with ANYONE. We'll never call or\r\nmessage you and ask for it.\r\n",
"parameters": [
{
"key": "{{pin}}",
"type": "Text"
}
]
},
{
"id": "3",
"name": "OTP with business/platform name",
"englishMessage": "{{businessPlatformName}}: Your code is {{pin}}.\r\nPlease don't share your code with ANYONE. We'll never call or\r\nmessage you and ask for it.\r\n",
"parameters": [
{
"key": "{{pin}}",
"type": "Text"
},
{
"key": "{{businessPlatformName}}",
"type": "Text"
}
]
}
]
}