SMS for SaaS, apps & startups: Sign-up to second factor, in two API calls.

Phone verification at sign-up, two-factor login and usage alerts, without building any of it yourself.

A software team working on laptops

Why it matters

How SMS helps SaaS products and apps

For a software product, the phone number is often the identity: it signs users up, logs them in, recovers accounts and receives the alerts that matter. Building that yourself means generating and storing codes, handling retries and defending a form attackers love to abuse. DiOTP reduces it to two API calls.

The messages sent most

  • Sign-up phone verification
  • Two-factor login
  • Password reset codes
  • Usage and billing alerts

Use cases

Where SaaS products and apps use DiOTP

Sign-up phone verification

Confirm that a new user owns the number they entered before you create the account. It cuts fake sign-ups and gives you a reachable contact for every account.

Passwordless and two-factor login

Use an OTP as the whole login, or as a second factor after a password. Expiry after five minutes and a limit of five wrong attempts are enforced for you.

Account recovery and sensitive changes

Ask for a code before a password reset, an email change or a payout change: the actions someone who has taken over an account tries first.

Protection from SMS pumping

Attackers trigger OTPs to numbers they profit from and run up your bill. By default DiOTP allows one code per number every 30 seconds, three an hour and ten a day, and 30 sends a minute per API key.

Usage and billing alerts

Quota warnings, failed payments and renewal reminders on your own templates, for the moments an email is not read in time.

Examples

What your customers receive

Example messages, each sent on a DLT-registered template under your own sender name.

Template examples to adapt

Written the way DLT expects: fixed text, with {#var#} wherever a name, amount, date, code or link changes. Replace ABC with your brand before you register them.

MessageCategoryTemplate
Sign-up codeService{#var#} is your verification code for ABC App. It expires in 5 minutes. Do not share it.
Login codeService{#var#} is your ABC App login code. If you did not try to log in, ignore this message.
Sensitive changeService{#var#} is your code to change the payout account on ABC App. Never share this code with anyone.
Quota alertServiceYou have used {#var#} of your monthly ABC App quota. Upgrade at {#var#} to avoid interruptions.
Payment failedServiceYour ABC App payment of Rs {#var#} failed. Update your card at {#var#} to keep your plan active.

Links and phone numbers inside a template must also be whitelisted on DLT. How DLT registration works.

Setup

How to set it up

  1. 1

    Create a DiOTP account. You get API keys and free test credits straight away, and can send test codes to your own number.

  2. 2

    Call POST /v1/otp/send from your server with the number and an Idempotency-Key, and keep the request_id it returns.

  3. 3

    Call POST /v1/otp/verify with the request_id and the code the user typed. A 200 response means the number is theirs.

  4. 4

    Add a webhook endpoint if you want delivery and verification events in your own system, then ask to go live from your dashboard.

  5. 5

    For your own sender name and for alerts, register on DLT and talk to us about templates and volumes.

SMS for SaaS products and apps: questions

Two server-side calls. Send the number to POST /v1/otp/send and keep the request_id, then send the request_id and the user's code to POST /v1/otp/verify. The API docs have examples in cURL, Node.js, Python and PHP.

Start building your customer messaging with DiOTP

Free test credits on sign-up, API keys in a minute, and a team that picks up the phone.