verified_user
OTP & 2FA
OTP Verification API for Sri Lanka
Deliver one-time passwords and two-factor authentication codes with fast delivery and 99.9% uptime. REST API with SDKs for JavaScript, Java, PHP, WordPress and more.
OTP Delivery Performance
140ms
Avg. API Response
99.9%
Uptime SLA
Multiple
SDK Languages
100%
Island-wide
Why TXTMSG for OTP Delivery
bolt
Sub-Second Delivery
Fast delivery across all Sri Lankan mobile networks. Your users get their OTP quickly.
autorenew
Auto-Retry Logic
Intelligent retry across multiple carrier routes ensures delivery even during network disruptions.
security
Enterprise Security
TLS encryption in transit, rate limiting, and DDoS protection keep your OTP infrastructure secure.
Quick Integration
Send an OTP with a single API call. Full SDK documentation available.
curl -X POST https://sms.txtmsg.lk/api/v3/sms/send \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipient": "+947XXXXXXXX", "sender_id": "Verify", "type": "plain", "message": "Your verification code is: 8842. Valid for 5 minutes." }' // Response { "status": "success", "sid": "SM92f02b34...", "delivery_time_ms": 98 }
OTP Pricing
| Plan | OTP Price | Monthly Fee | Best For |
|---|---|---|---|
| Pay-As-You-Go | LKR 0.75/SMS | None | Low volume |
| Starter | LKR 1.00/SMS (overage) | LKR 750 | 800 SMS included |
| Growth | LKR 0.85/SMS (overage) | LKR 1,800 | 2,400 SMS included |
| Business | LKR 0.70/SMS (overage) | LKR 3,500 | 5,000 SMS included |
Secure your app with instant OTP delivery
Get 1,000 free test credits. No credit card required.