Authorization: Bearer <token>. Get it with the sign-in call (POST /api/customer-users/partner-login).multipart/form-data.ProviderType, Name and Message are always needed.Whatsapp template also send LanguageCode, WhatsAppTemplateCategory and Country, and the account must have an active WhatsApp sender. The template is sent to WhatsApp for review; it can be used when whatsAppApprovalStatus is Approved (read it with GET /api/templates/{id}).SMS and TwoWaySms templates start with status InProgress and can be used after our team has approved them. Templates for the other channels get status Approved at once.{{name}}, {{surname}}, {{email}} and {{url}} are filled from each contact when a campaign is sent. In a WhatsApp template write your own variables as {{variable_name}}, not at the very start or the very end of the text.Attachments are kept for Email and Whatsapp templates.data, which is always a list.Whatsapp template, the call answers 424 with the message Something went wrong. Please try again.curl --location 'https://api.veloconnect.me/api/templates' \
--header 'Authorization: Bearer <token>' \
--form 'ProviderType="SMS"' \
--form 'Name="Order shipped"' \
--form 'Message="Dear {{name}}, your order has been shipped. Track it here: {{url}}"' \
--form 'Country="ARM"' \
--form 'LanguageCode="en"' \
--form 'WhatsAppTemplateCategory="Utility"' \
--form 'Attachments=@"price-list.pdf"'{
"data": [
204
]
}