apiId. If your account has a list of allowed IP addresses, the call must come from one of them.GET /api/partners/viber-senders). Send the body as multipart/form-data.RateType says what the message is for and Type what it holds. Use one of these pairs:Transactional with Text or File.Promotional with Image, TextButton, ImageTextButton, Video, VideoText or VideoTextButton.Invalid template rate type for selected functionality type.Text, TextButton, VideoText, VideoTextButton: Message.File, Image, ImageTextButton, Video, VideoText, VideoTextButton: Attachment.Video, VideoText, VideoTextButton: also Thumbnail and Duration.TextButton, ImageTextButton, VideoTextButton: Action (the link) and Caption (the text on the button).{{name}}, {{surname}}, {{email}} or {{url}} in Message; a campaign replaces them with the data of each contact.data holds the id of the new template. Its status is InProgress until it is reviewed. Check it with GET /api/partners/viber-templates/{id}: you can send the template when status is Approved.Country is required., Invalid sender id (the sender is not an active Viber sender), Attachment is required. or Unavailable file format.curl --location 'https://api.veloconnect.me/api/partners/viber-templates' \
--header 'Accept: application/json' \
--header 'apiId: <api-key>' \
--form 'Name="October offer"' \
--form 'SenderId="57"' \
--form 'Country="ARM"' \
--form 'RateType="Promotional"' \
--form 'Type="VideoTextButton"' \
--form 'Message="Hello {{name}}, your October offer is ready."' \
--form 'Attachment=@"october-offer.mp4"' \
--form 'Thumbnail=@"october-offer-preview.jpg"' \
--form 'Duration="30"' \
--form 'Action="https://example.com/offers/october"' \
--form 'Caption="See the offer"' \
--form 'CountryPhoneCode="374"'{
"data": [
214
]
}