Viber OTP templates inventory

Predefined templates

Predefined one-time password (OTP) templates for Viber verification messages. Use the Template ID and Parameters in your API request when sending an OTP.


Quick reference

Template nameTemplate IDRequired parameters
Basic OTP0aac888f-2ee2-4112-9659-1755a951966apin
Basic OTP valid for 5 minutesc2cdc028-a48b-4187-bbaf-3aaa137b6e23pin
OTP with business/platform namec33cccaf-735f-4d62-8383-a76bf4999e2dpin, businessPlatformName
OTP with code validity timebed0942f-e07e-4879-834b-29cc4cf3ec35pin, codeValidityTime (minutes)
OTP with code type & validity time60d67b38-b9fb-444a-80e6-754447e010c6pin, pinType, codeValidityTime (minutes)
OTP with business/platform name & validity time6c929cef-29b4-4349-bc9d-2a07bdbb6e43pin, businessPlatformName, codeValidityTime (minutes)
OTP with type of code82ba31a3-db42-4e87-82e8-33fa92b9e5edpin, pinType
OTP with details on OTP action/platform210ee8a9-1ed5-43cd-96e4-65bba311ab40pin, businessPlatformActionName
OTP with business/platform name & code reasonbe56d97b-2a33-4c89-ac5f-f555a2c827d9pin, businessPlatformName, codeReason


Parameter names in API requests

Send parameters in camelCase in your request body. Example for template 6:

{
  "templateId": "6c929cef-29b4-4349-bc9d-2a07bdbb6e43",
  "templateParams": {
    "pin": "123456",
    "businessPlatformName": "MyApp",
    "codeValidityTime": 5
  }
}
Template variableAPI parameter name
{{pin}}pin
{{pin_type}}pinType
{{code_validity_time}}codeValidityTime
{{business_platform_name}}businessPlatformName
{{business_platform_action_name}}businessPlatformActionName
{{code_reason}}codeReason

1. Basic OTP

Template ID: 0aac888f-2ee2-4112-9659-1755a951966a

Message copy:

Your code is {{pin}}.
Please don't share your code with ANYONE. We'll never call or message you and ask for it.

Parameters:

ParameterTypeDescription
pinTEXTThe OTP code shown to the user

2. Basic OTP valid for 5 minutes

Template ID: c2cdc028-a48b-4187-bbaf-3aaa137b6e23

Message copy:

Your code is {{pin}}. It's valid for 5 minutes.
Please don't share your code with ANYONE. We'll never call or message you and ask for it.

Parameters:

ParameterTypeDescription
pinTEXTThe OTP code shown to the user

3. OTP with business/platform name

Template ID: c33cccaf-735f-4d62-8383-a76bf4999e2d

Message copy:

{{business_platform_name}}: Your code is {{pin}}.
Please don't share your code with ANYONE. We'll never call or message you and ask for it.

Parameters:

ParameterTypeDescription
pinTEXTThe OTP code shown to the user
businessPlatformNameTEXTYour app or platform name (e.g. "MyBank", "Acme App")

4. OTP with code validity time

Template ID: bed0942f-e07e-4879-834b-29cc4cf3ec35

Message copy:

Your code is {{pin}}. It's valid for {{code_validity_time}} minutes.
Please don't share your code with ANYONE. We'll never call or message you and ask for it.

Parameters:

ParameterTypeDescription
pinTEXTThe OTP code shown to the user
codeValidityTimeNUMBERValidity duration in minutes (e.g. 5, 10, 15)

5. OTP with code type & validity time

Template ID: 60d67b38-b9fb-444a-80e6-754447e010c6

Message copy:

Your {{pin_type}} code is {{pin}}. It's valid for {{code_validity_time}} minutes.
Please don't share your code with ANYONE. We'll never call or message you and ask for it.

Parameters:

ParameterTypeDescription
pinTEXTThe OTP code shown to the user
pinTypeTEXTType of code (e.g. "verification", "login")
codeValidityTimeNUMBERValidity duration in minutes (e.g. 5, 10)

6. OTP with business/platform name & validity time

Template ID: 6c929cef-29b4-4349-bc9d-2a07bdbb6e43

Message copy:

Your {{business_platform_name}} code is {{pin}}. It's valid for {{code_validity_time}} minutes.
Please don't share your code with ANYONE. We'll never call or message you and ask for it.

Parameters:

ParameterTypeDescription
pinTEXTThe OTP code shown to the user
businessPlatformNameTEXTYour app or platform name
codeValidityTimeNUMBERValidity duration in minutes (e.g. 5, 10, 15)

7. OTP with type of code

Template ID: 82ba31a3-db42-4e87-82e8-33fa92b9e5ed

Message copy:

Your {{pin_type}} code is {{pin}}.
Please don't share your code with ANYONE. We'll never call or message you and ask for it.

Parameters:

ParameterTypeDescription
pinTEXTThe OTP code shown to the user
pinTypeTEXTType of code (e.g. "verification", "login")

8. OTP with details on OTP action/platform

Template ID: 210ee8a9-1ed5-43cd-96e4-65bba311ab40

Message copy:

Your one-time password for {{business_platform_action_name}} is {{pin}}.
Please don't share your code with ANYONE. We'll never call or message you and ask for it.

Parameters:

ParameterTypeDescription
pinTEXTThe OTP code shown to the user
businessPlatformActionNameTEXTThe action or context (e.g. "logging in", "confirming payment")

9. OTP with business/platform name & code reason

Template ID: be56d97b-2a33-4c89-ac5f-f555a2c827d9

Message copy:

{{business_platform_name}}: Your code is {{pin}}. You got this code because {{code_reason}}.
Please don't share your code with ANYONE. We'll never call or message you and ask for it.

Parameters:

ParameterTypeDescription
pinTEXTThe OTP code shown to the user
businessPlatformNameTEXTYour app or platform name
codeReasonTEXTReason the user received the code (e.g. "you requested a password reset")