TXT MSG .lk
FAST • RELIABLE • EVERYTIME
verified_user OTP & 2FA

OTP Verification API for Sri Lanka

Deliver one-time passwords and two-factor authentication codes with 140ms average latency and 99.99% uptime. REST API with SDKs for PHP, Python, Node.js, Java, Go, and Ruby.

View Pricing

OTP Delivery Performance

140ms
Avg. Latency
99.99%
Uptime SLA
6
SDK Languages
190+
Countries

Why TXTMSG for OTP Delivery

bolt

Sub-Second Delivery

140ms average delivery across all Sri Lankan mobile networks. Your users get their OTP instantly.

autorenew

Auto-Retry Logic

Intelligent retry across multiple carrier routes ensures delivery even during network disruptions.

security

Enterprise Security

End-to-end encryption, 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.

Need Help? Chat With Us