Skip to main content
Senddio glossary · One-Time Password

What is an OTP?

A one-time password (OTP) is a short, randomly-generated code that is valid only for a single use and a short period of time. Apps send OTPs by SMS, email or push notification to prove that a user owns the phone number or email address they signed up with.

Where OTPs are used

OTPs are most often used for two factor authentication (2FA) during login, for verifying a new phone number or email address, for authorising sensitive actions like password resets or large payments, and for guest checkout in e-commerce. The user receives a short code, types it back into the app, and the app confirms it matches what was sent.

Why OTPs work

An OTP needs secure random generation, single-use enforcement, a short expiry and strict attempt limits. Short numeric codes are guessable without rate limiting; interception and phishing remain risks.

Best practices for sending OTPs

Choose an appropriate code length and short expiry, bind the code to its user and purpose, and limit both generation and verification attempts. Do not expose codes in application logs. Your application owns code generation and verification.

How Senddio handles OTPs

Your application generates and validates the code, then uses Senddio to deliver it. For email set messageType to transactional. A tag is an analytics label, not an OTP priority or redaction switch. Senddio does not generate deterministic OTPs or guarantee a delivery deadline.

Related terms
A2P 10DLC Webhook
FAQ

OTP — FAQ

SMS OTP is vulnerable to SIM swaps, phishing and interception. Assess the risk for your application and consider phishing-resistant authentication. Senddio transports the message; it does not make an OTP flow secure on its own.

Measure delivery latency in your own regions and provide a clear expiry and resend flow. Queue acceptance is not proof of receipt, and carrier or inbox delivery times can vary.

Generate test codes in your application and test expiry, verification and attempt limits there. Senddio test mode records simulated sends without calling real providers; it does not supply an OTP generator or prove real-world delivery.

Senddio handles the boring parts of OTP for you.

Try all six channels within Free safety caps, plus 20 monthly AI credits. Feature access depends on your plan. No card to start.

Start free Read the docs
● 300 emails/day · All 6 channels · AI credits · No card