Viber Verification Messages (OTP)

Purpose and Benefits

The Viber Verification Messages (OTP) feature in our API empowers businesses to securely deliver one-time passwords (OTPs) to their end users.

Key Benefits

Enhanced Security

OTPs are sent from verified business accounts, complete with encryption and branding, ensuring legitimacy and reducing the risk of fraud.

Global Reach with Localization

With support for 33 languages, businesses can deliver OTPs to their end users in their preferred language using localized templates.

Cost Savings

Viber OTP messages are available at competitive rates, offering a cost-effective alternative to traditional SMS verification.

User-Friendly Design

Features like the “Copy Password” button make it simple for end users to quickly copy and paste OTPs, streamlining the verification process.


Key Features

Customizable, Pre-Approved Templates

Our API provides access to Viber’s pre-designed, customizable OTP message templates. These templates include dynamic variables that API users can define to fit their specific use case, such as:

  • {{pin}}: The OTP code
  • {{code_validity_time}}: The validity duration of the OTP
  • {{business_platform_name}}: The name of the business or platform sending the message

Example templates:

  • "Your code is {{pin}}. It’s valid for {{code_validity_time}} minutes."
  • "{{business_platform_name}}: Your code is {{pin}}."

Localized Messaging

Messages can be sent in the end user's preferred language by specifying the templateLang parameter using ISO 639-1 two-letter language codes. This ensures a personalized experience across different regions.

Verified Business Messaging

Messages are sent from Viber’s verified business accounts, which include branding, encryption, and a “blue tick” for authenticity.


Example Use Cases

User Onboarding

Securely verify new accounts, ensuring that only authorized users gain access to your platform, preventing fraudulent activities, and maintaining the integrity of your user base.

Transaction Security

Protect transactions with OTP verification, adding an additional layer of security to prevent unauthorized transactions and safeguard user financial data.

Password Resets

Enable secure password recovery, allowing users to regain access to their accounts in a secure and user-friendly manner, minimizing disruptions, and enhancing user satisfaction.


Getting Started

Integrate the API

Refer to the API Reference for comprehensive technical details, including endpoints, request parameters, response formats, and code examples to guide your integration process.

Select a Template

Choose from our library of pre-approved templates, carefully designed to cater to various use cases and languages, ensuring clear and effective communication.

Define Template Variables

Personalize messages by specifying values for dynamic fields such as the OTP ({{pin}}) or its validity duration ({{code_validity_time}}).

Send the Verification Message (OTP)

Use the API endpoint to send the verification message to the recipient. Ensure that all required parameters, including the phone number, template ID, and template variables (e.g., {{pin}}), are included in the request.

Track and Monitor Delivery

Use tracking parameters like message_token and seq to monitor the delivery status of OTP messages and ensure successful communication.