Overview
This guide explains how resellers can configure SMS and WhatsApp Login OTP templates for their users’ login authentication through the White Label configuration panel.
Accessing OTP Template Configuration
- Log in to your reseller panel
- Navigate to White Label → Set Theme
- Look for Login OTP (OTP Configuration)
- Select to expand the OTP template configuration panel
Channel Type Selection
Available Options
- SMS Only: Send OTP via SMS only
- WhatsApp Only: Send OTP via WhatsApp only
- Both SMS & WhatsApp: Allow users to choose between SMS and WhatsApp
How to Select
- In the Channel Type dropdown, select your preferred option
- The form will automatically show/hide relevant configuration fields based on your selection
SMS OTP Configuration
Required Fields
1. OTP Message Template
- Field: OTP Message
- Purpose: Custom message sent to users
- Placeholders Available:
{OTP}
– The actual OTP code{USERNAME}
– User’s username
Example Messages:
- “Your login OTP is {OTP}. Valid for 5 minutes.”
- “Hello {USERNAME}, your verification code is {OTP}.”
- “OTP: {OTP} – Use this code to verify your login.”
2. Sender ID Selection
- Field: Select Sender ID
- Purpose: Choose the sender name for SMS
- Note: Must be approved by telecom authorities
3. DLT Template ID (If Applicable)
- Field: DLT Message Template ID
- Purpose: Required for Indian SMS compliance
- Note: Only required for Indian SMS traffic
WhatsApp OTP Configuration
Required Fields
1. API URL
- Field: API URL
- Purpose: WhatsApp Business API endpoint
- Example:
https://api.example.com/send
2. Headers Configuration
- Purpose: Authentication and content-type headers
- How to Add Headers:
- Click Add Header button
- Enter header name in Key field
- Enter header value in Value field
- Repeat for additional headers
- Use × button to remove headers
3. Request Body Template
- Field: Body
- Purpose: Message template for WhatsApp API in JSON format
- Placeholders Available:
{OTP}
– The actual OTP code{phone}
– Recipient’s phone number
Step-by-Step Setup Process
For SMS Only Setup
- Select Channel Type: Choose “SMS” from dropdown
- Configure Message: Enter your OTP message template
- Select Sender ID: Choose from available sender IDs
- Add DLT Template: Enter DLT template ID (if applicable)
- Save Configuration: Click save to apply changes
For WhatsApp Only Setup
- Select Channel Type: Choose “WhatsApp” from dropdown
- Enter API URL: Provide your WhatsApp Business API endpoint
- Configure Headers: Add authentication headers
- Set Body Template: Enter message template
- Save Configuration: Click save to apply changes
For Both SMS & WhatsApp Setup
- Select Channel Type: Choose “Both SMS & WhatsApp”
- Configure SMS Section: Complete SMS template setup
- Configure WhatsApp Section: Complete WhatsApp template setup
- Save Configuration: Click save to apply changes
Testing Your Configuration
SMS Testing
- Use your own mobile number for testing
- Trigger OTP from login page
- Verify message format and sender ID
- Check delivery time and success rate
WhatsApp Testing
- Send test message to your WhatsApp number
- Verify message format and template rendering
- Test with different phone number formats
Troubleshooting Common Issues
SMS Issues
Problem: SMS not delivered
- Check sender ID approval status
- Verify DLT template ID for Indian numbers
- Check SMS gateway balance and configuration
Problem: Wrong message format
- Verify placeholder syntax
{OTP}
,{USERNAME}
- Check message length limits
WhatsApp Issues
Problem: API authentication failed
- Verify access token in headers
- Check API URL format
- Ensure proper content-type header
Problem: Template not rendering
- Verify message template format
- Check placeholder format
{OTP}
,{phone}
- Ensure template is approved in WhatsApp Business Manager
Best Practices
SMS Configuration
- Keep messages under 160 characters for single SMS
- Include validity period and security warnings
- Use your company name in sender ID
- Ensure DLT template approval for Indian traffic
WhatsApp Configuration
- Use pre-approved message templates
- Test with your own number before going live
- Always have SMS fallback for WhatsApp failures
Support and Resources
Getting Help
- Technical Support: Contact SMPPCenter support team
- Community: Join SMPPCenter community forums
Additional Resources
- WhatsApp Business API Documentation
- SMS Gateway Provider Documentation
- DLT Portal (for Indian SMS compliance)
- SMPPCenter Knowledge Base
Conclusion
Proper OTP template configuration ensures reliable and secure user authentication. Follow this guide to set up your SMS and WhatsApp OTP templates correctly. Always test your configuration thoroughly before deploying to production users.
For additional support or questions, contact the SMPPCenter support team through your reseller panel.