Templates

GET https://connect.routee.net/failover-otp/otp/templates (no auth) returns all Viber OTP template types with their template UUID (id), parameters, and example text. Use id as templateId in a ViberOtp step. Template IDs may vary per deployment; always use the values returned by GET /otp/templates.

7.1 Template reference (9 types)

typenamerequired_paramsoptional_params
basicBasic OTPpin
basic_5minBasic OTP valid for 5 minutespin
with_business_nameOTP with business/platform namepin, business_name
with_validityOTP with code validity timepin, validity_time
with_type_and_validityOTP with code type & validity timepin, pin_type, validity_time
with_business_and_validity_hoursOTP with business name & validity (hours)pin, business_name, validity_time
with_typeOTP with type of codepin, pin_type
with_actionOTP with action descriptionpin, action_name
with_reasonOTP with business name & code reasonpin, business_name, code_reason

What’s Next