Messaging Services
/
OTP
Omni-Channel OTP Service
Secure registrations and transactions. Dispatch one-time-passwords across WhatsApp, SMS, and RCS, with smart dynamic fallbacks to ensure successful deliverability.
Send OTP with SMS/RCS fallback sequence
curl -X POST https://api.msgx.in/v1/otp/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+919999999999",
"channels": ["whatsapp", "rcs", "sms"],
"expiry_seconds": 300,
"otp_length": 6
}'