Authentication Templates
Four production-ready templates for authentication and security use cases.
Starter Tier: Use sendTypedTemplate
If you're on Starter tier, use the SDK's sendTypedTemplate() method or the /v1/messages/send-template API endpoint. These examples show template rendering only - see Using Templates for complete sending examples.
Allowed on Starter Tier
All Authentication templates are approved for Starter tier shared numbers (2FA campaign type).
OTP Verification
Send one-time password codes for 2FA.
Code
Variables:
code(string) - 6-digit verification codecompany(string) - Your company name
Best for: Two-factor authentication, login verification, account verification
Password Reset
Send password reset links with expiration time.
Code
Variables:
company(string) - Your company nameurl(string) - Password reset URL (use short links)minutes(number) - Expiration time in minutes
Best for: Password recovery, account access restoration
New Login Alert
Notify users of new login from unrecognized device.
Code
Variables:
company(string) - Your company namelocation(string) - City and state/countrydevice(string) - Device nameurl(string) - Security action URL
Best for: Security notifications, suspicious activity alerts
Account Security Alert
Generic security notification for account changes.
Code
Variables:
company(string) - Your company nameaction(string) - What security action occurredurl(string) - Help/support URL
Best for: Password changes, email updates, 2FA settings changes
Next Steps: