Create Template

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
data
required
Responses

400

Bad Request:

Code Message Description
1241 'data.wa_sender_code' required for WhatsApp template
1254 'data.text' is required Required for SMS, WhatsApp and Viber(text) templates
1256 'data.channel' is required
1257 'data.channel' value should be: [SMS, VIBER, WHATSAPP]
1259 'data.name' is invalid
1260 'data.text' is too long Text must be at most 1000 characters
1261 'data.name' is required For WhatsApp name is required
1263 'data.name' is too long Name must be at most 45 characters
1264 'data.url' is required Required for image, video and document templates without 'media_id'
1265 'data.url' is too long URL must be at most 2083 characters
1266 'data.url' contains invalid characters URL must be valid
1267 'data.filename' is required Required for document templates
1268 'data.filename' is too long Filename must be at most 25 characters
1269 'data.filename' contains invalid characters Filename must only contain [a-zA-Z0-9_] characters
1272 'data.button_text' is required
1273 'date.button_value' is invalid it should be a valid phone number in case of PHONE_CALL type, or valid URL in case of LINK type
1274 'data.button_text' too long Button Text must be at most 20 characters
1275 The image can be Max 5 MB, format JPG For WhatsApp image template
1276 The video can be Max 16 MB, format MP4 For WhatsApp video template
1277 The document can be Max 100 MB, format PDF For WhatsApp document template
1278 File extension can be only: .bmp, .gif, .jpg, .jpeg, .png, .svg, .webp. maximum size 24 MB For Viber image template
1279 File extension can be only: .3gpp, .m4v, .mov, .mp4. maximum size is 200 MB For Viber video template
1280 File extension can be only: .txt, .doc, .docx, .dot, .dotx, .rtf, .odt, .odf, .fodt, .info.pdf, .xps, .pdax, .eps.xls, .xlsx, .xltx, .xlsm, .csv, .ods, .fods. maximum size 200 MB For Viber document template
1282 URL should start with with 'https://' and have maximum length of 1000 characters For Viber URLs
1283 Document name should be Maximum 25 characters Viber filename must be at most 25 characters
1284 Both 'data.button_value' and 'data.button_text' are required in case one of them specified or both of them must be removed For Viber template with buttons
1285 Text + Image combination not allowed (button is missing) For Viber image template
1287 Image and Text combination not supported by Viber For Viber image template
1289 'data.media_id' is invalid Should be valid UUID
1291 'data.type' is invalid for the selected channel For Viber and Whatsapp should pass valid type
1306 'data.survey_options' is required and must not be empty for Viber survey templates
1307 'data.carousel_items' is required and must not be empty for Viber carousel templates For Viber carousel template
1308 'data.carousel_items' is required and must not be empty for Viber carousel templates Carousel must contain between 2 and 5 items
1310 'data.carousel_items[].action_url' must start with https:// and have a maximum length of 1000 characters For Viber carousel template
1311 'data.survey_options' must contain between 2 and 5 options
1313 label max length for primary button is 10 characters Carousel item's primary button's label max length for primary button is 10 characters
1314 Each option in 'data.survey_options' must not exceed 50 characters For Viber survey template
1315 title should be between 2 and 38 characters Carousel item's title should be between 2 and 38 characters
1316 label max length for secondary button is 12 characters Carousel item's secondary button's label max length for primary button is 10 characters
1317 Primary button is required for carousel template. For Viber carousel template
1319 data.carousel_items[].mediaId' must be a UUID. For Viber carousel template
1320 action url is required for Viber carousel buttons For Viber carousel template
1321 label is required for Viber carousel buttons. For Viber carousel template
1322 text should not exceed 85 characters for Viber survey templates For Viber survey template
1324 'data.carousel_items[].imageUrl' must start with https:// and have a maximum length of 1000 characters For Viber carousel template
1325 Each option in 'data.survey_options' must not be less than 2 characters. For Viber survey template
1327 'data.viber_template' is required for Viber OTP and Transactional templates
1328 A parameter named 'code' is required for Viber OTP templates
1329 'data.viber_template.sender_code' is required
1332 'data.viber_template.params' is required
1333 'data.viber_template.params' must contain at most 5 parameters
1334 'data.viber_template.params[].name' is required
1335 'data.viber_template.params[].name' must not exceed 50 characters
1336 'data.viber_template.params[].name' must contain only English letters, digits, and underscores
1337 'data.viber_template.params[].type' must be TEXT
1338 'data.viber_template.locales' is required
1339 'data.viber_template.locales' must contain exactly one locale
1340 'data.viber_template.locales[].lang' is required
1341 'data.viber_template.locales[].template' is required
1342 'data.viber_template.locales[].template' must be between 1 and 875 characters
1343 'data.viber_template.locales[].template' must start with static text, not a placeholder
1344 'data.viber_template.locales[].template' must end with static text, not a placeholder
1345 'data.viber_template.locales[].template' must not contain consecutive placeholders
1346 'data.viber_template.var_example' is required
1347 'data.viber_template.var_example' must contain at most 5 entries
1348 'data.viber_template.var_example[].name' is required
1349 'data.viber_template.var_example[].name' must not exceed 50 characters
1350 'data.viber_template.var_example[].name' must match a defined parameter name
1351 'data.viber_template.var_example[].example' must not exceed 100 characters
1352 'data.viber_template.locales[].lang' must be one of the supported language codes
1353 'data.viber_template.locales[].template' must contain a placeholder for every defined param
1354 'data.viber_category' is required
1355 Failed to register template with Viber. The Viber service is unavailable or returned an error.
1356 'data.type' is invalid for Viber PROMOTIONAL category
1357 'data.viber_template' must not be provided when 'data.viber_category' is PROMOTIONAL
1358 'data.type' must be TEXT for Viber OTP and Transactional templates
1359 'data.viber_template.var_example[].example' must not contain a URL, link, or email address
1360 Only PROMOTIONAL Viber templates can be updated
1361 'data.viber_category' has an invalid value
1362 'data.viber_template.locales[].template' must not contain a placeholder separated from another placeholder by only 1 or 2 character word
1242 'data.otp_expiration_seconds' must be between 30 and 900 seconds. For WhatsApp OTP templates
1243 An issue occurred on WhatsApp's side. Please try again later. WhatsApp provider error during template save
1244 'data.button_value' may only contain {path} as a dynamic placeholder For WhatsApp CALL_TO_ACTION button with dynamic URL
1245 'data.button_value' must be at most 1950 characters for a CTA Dynamic URL button For WhatsApp CALL_TO_ACTION button
1246 'data.button_url_example' is required when the CTA URL contains a dynamic placeholder For WhatsApp CALL_TO_ACTION button with dynamic URL
409

Conflict:

Code Message
1258 'data.name' should be unique
Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json