Custom templates for Telnyx Verify
Telnyx Verify now enables you to create and register your own verification message templates instantly. This feature allows you to build compliant, branded one-time password (OTP) messages that match your brand voice while maintaining security standards.Overview
Custom templates give you complete control over your verification messaging. Instead of using pre-built templates, you can create personalized messages that:- Align with your brand guidelines and tone of voice.
- Include industry-specific security warnings and disclaimers.
- Maintain compliance with regulatory requirements.
- Deploy instantly without manual approval processes.
When to use custom templates
Use custom templates when:- You need branded verification messages that match your company’s voice.
- Your industry requires specific compliance language in OTP messages.
- You want to include custom security warnings or instructions.
- You need different templates for different user segments or regions.
- You’re getting started quickly and don’t need customization.
- Standard verification messages meet your requirements.
- You want to minimize setup time.
Template variables
All verification templates support the following variables that will be automatically replaced when sending verifications:{{app_name}}- Your application name as configured in the verify profile.{{code}}- The verification code sent to the user.
Creating custom templates
Use the Telnyx API to create custom verification message templates.Create a custom template
Example response
id returned in the response. You’ll need this ID to reference the template when creating verify profiles.
For complete API details, see the Create Message Template API reference.
Real-world template examples
Here are industry-specific template examples to inspire your custom messaging:E-commerce and retail
Banking and finance
Healthcare and telemedicine
Social media and gaming
Delivery and logistics
Travel and hospitality
Using custom templates in verify profiles
Once you’ve created a custom template, reference its ID when creating or updating a verify profile.Example: Create verify profile with custom template
messaging_template_id field references your custom template. When you send verifications using this profile, your custom template will be used instead of the default.
Updating custom templates
You can update existing custom templates to refine messaging or fix errors.Update a template
Example response
Updating a template affects all verify profiles that reference it. Test template changes carefully before updating production templates.
Best practices
Keep messages concise
SMS messages have character limits. Keep your templates under 160 characters when possible to avoid message splitting and additional costs.Include security warnings
For sensitive use cases like banking or healthcare, include warnings about not sharing codes:Test before production
Always test new templates in a development environment before using them in production verify profiles. Send test verifications to confirm:- Variables are replaced correctly.
- Message formatting appears as expected.
- Character count is within limits.
- Links or special characters display properly.
Follow compliance guidelines
Ensure your templates comply with:- Industry regulations (HIPAA, PCI-DSS, GDPR, etc.).
- Carrier requirements for SMS messaging.
- Local laws regarding verification messages.
- Your organization’s security policies.
Consider localization
If you serve multiple regions, create separate templates for different languages and cultures. Use the verify profile’slanguage parameter to organize templates by locale.
Next steps
- Learn how to send verifications: Telnyx Verify quickstart
- Configure webhooks for verification events: Receiving webhooks
- View the complete Verify API reference: Verify API documentation