SMSBAT Developer Tools
Essential tools for SMSBAT API development, testing, and integration
Viber Template Builder
Create and validate Viber message templates according to Viber Business policy
Viber Template Guidelines
Viber Business allows sending messages only through pre-approved templates. Templates must comply with specific guidelines and undergo approval process.
Template Statuses
Templates go through different approval stages:
- New template submitted for review: New template submitted for review
- Template approved and ready to use: Template approved and ready to use
- Template under review: Template under review
- Template rejected, needs revision: Template rejected, needs revision
- Template submission cancelled: Template submission cancelled
Allowed Message Types
Viber Business allows the following types of transactional messages:
- Reminders about scheduled events (e.g., appointments)
- Notifications/warnings about service performance (service unavailable, performance issues, etc.)
- Login/logout/login attempt warnings
- Information about schedules/class schedules, current and final assessments, internal orders/homework sent by educational institutions/leisure centers
- Debt reminders (including contract/agreement details)
- Information about debt repayment terms and conditions
- Information about accumulation/spending/terms of use/purchase of loyalty program coupons
Forbidden Content
The following content is not allowed in Viber Business templates:
- Templates that do not correspond to any of the above service template types
- Service templates containing any additional promotional information
- Triggers for product/service purchase offers
- Triggers for increasing service loyalty (holiday greetings, service rating offers)
- Templates containing information from companies that do not provide the service
Template approval typically takes 1-3 business days.
Variable Patterns
Use these regex patterns for dynamic content in templates:
| Pattern | Meaning | Template Example | Message Example |
|---|---|---|---|
\w+ | Any character - letters and numbers | Hello \w+ your current balance is \w+ | Hello Alina, your current balance is 4000 |
\S+ | Any character except space | Hello \S+ your current balance is \S+ | Hello Alina, your current balance is 4000 |
\d+ | Digits 0-9 | Hello \S+ your current balance is \d+ | Hello Alina, your current balance is 4000 |
(\S+ )*\S+ | From 0 to infinity words, with space between them | Hello (\S+ )*\S+ your current balance is \d+ | Hello, your current balance is 4000 |
\d+ | Number of allowed characters (1-15) | Hello (\S+ )*\S+ your current balance is \d+ | Hello Miss Alina, your current balance is 4000 |
Template Cleaning Rules
Templates are automatically cleaned before submission:
Important: All templates are cleaned automatically.
The following symbols are removed:
Special characters, emojis, and formatting symbols
Only plain text and approved regex patterns are allowed.
Template Examples
Appointment Reminder
Повідомлення:
Шаблон:
Service Notification
Повідомлення:
Шаблон:
Login Alert
Повідомлення:
Шаблон:
Validation Rules
Templates must follow these validation rules:
- Templates cannot start with flags like '/' or '/ui'
- Templates cannot start or end with spaces
- Templates cannot contain double spaces anywhere
- Templates cannot contain line breaks
- Using '%' in templates is incorrect - use '\w+' or '\S+' or '\d+' instead
Maximum template length: 1000 characters
All templates are validated against Viber Business policies before submission.
Phone Number Validator
Validate phone numbers in international E.164 format
JSON Formatter
Format and validate JSON for API requests