Voice OTP & broadcast: When a text is not enough, call.
Read a code aloud for users who cannot receive SMS, or broadcast a recorded or text-to-speech message to a whole list, with keypad responses.

How it works
Get started with Voice calls in three steps
Talk to us
Tell us the calls you want to make: OTPs, confirmations or broadcasts.
Record or type
Upload a recording or write text that is read out in the language you choose.
Call and collect
Calls go out and keypad responses come back to you in reports and webhooks.
Features
What you get with Voice calls
Voice OTP
The code is read out clearly, twice, in the language you choose.
Voice broadcast
Send a recorded message or text-to-speech to thousands of numbers.
Keypad input
"Press 1 to confirm, 2 to cancel": responses come back to you.
Call reports
Answered, missed and duration for every call.
TTS
in Indian languages
DTMF
keypad responses
Reports
for every call
1
wallet for every channel
The voice OTP API, in detail
Voice OTP verification delivers a one-time password as a phone call instead of a text. The phone rings, an automated voice reads the code out slowly, twice, and the user types it into your app. Talk to us about voice OTP for your account: it is designed around the same send and verify API you use for SMS, so it is one field in your request rather than a new integration.
What a voice OTP call is
It is the same short, single-use code you would send by SMS, spoken by a text-to-speech voice in a short automated call. The code is generated, stored and checked by DiOTP exactly as it is for SMS: it expires after five minutes, allows five wrong attempts and can only be verified once. The only thing that changes is how the code reaches the person.
Because the call is placed to the number itself, OTP verification by call proves the same thing as an SMS OTP: the person holding that phone right now asked for the code. Some people know the idea as a voice SMS, a text read aloud by a machine; here the only text is the code.
When to use voice instead of SMS
- The number is a landline, which cannot receive SMS at all.
- The user is on a basic feature phone, or finds reading a six-digit code from a text difficult.
- An SMS has not arrived after the resend timer, and a call is a better second attempt than another text.
- The user has a weak data signal but can still take a call, for example while travelling.
- Accessibility: users with low vision can hear the code rather than read it.
For most users SMS remains the default, because it arrives quietly, while an OTP voice call rings and asks for their attention. The usual pattern is to offer "Call me instead" next to the resend link once the SMS timer has run out.
How an OTP verification call works
- Your server calls POST /v1/otp/send with the mobile number and "channel": "voice". DiOTP returns a request_id straight away.
- DiOTP generates a random code and places an automated call to the number.
- When the OTP verification call is answered, the code is read out digit by digit, then repeated, so the user can write it down or type it as they listen.
- The user enters the code in your app, and your server calls POST /v1/otp/verify with the request_id and the code.
- Call outcomes appear in your message log and, if you have added a webhook, are posted to your system as events.
If the call is not answered, nothing is verified. The user can ask for a new code, and the same resend cooldown and per-number limits apply as on SMS.
SMS to voice OTP fallback
The most common way to use a spoken code is as a fallback, not a first choice. SMS goes first because it is quiet and reaches the user without a ring. If the network reports that the text could not be delivered, or the user is still waiting when the resend timer runs out, the same code is read out in a call instead. The user does not have to start over, and you do not have to build a second flow.
- Your app sends the OTP by SMS as usual and shows the resend timer.
- The SMS fails, or the timer ends without the code being verified.
- A voice call is placed to the same number, reading out the same code, so the request_id your server holds is still the one to verify.
- The user types the code, and your server verifies it exactly as it would after an SMS.
You choose whether the fallback happens automatically after a failed SMS or only when the user taps "Call me instead". Either way it counts against the same per-number limits, so a fallback can never become a way to flood one phone with calls.
One send endpoint, no separate call OTP API
There is no separate voice OTP call API gateway with its own keys, formats and error codes to learn. Voice uses the send endpoint you already know, with the channel set to voice. Talk to us before you build it in. The request looks like this, and verifying the code is the same call you make for SMS:
curl -X POST https://api-diotp.diorbit.com/v1/otp/send \ -H "Authorization: Bearer $DIOTP_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 5f2b8c1e-login-9876543210" \ -d '{ "to": "9876543210", "country_code": 91, "channel": "voice", "purpose": "login" }'
const res = await fetch("https://api-diotp.diorbit.com/v1/otp/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.DIOTP_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID(), }, body: JSON.stringify({ to: "9876543210", country_code: 91, channel: "voice", purpose: "login", }), }); const otp = await res.json(); // Keep otp.request_id: you need it to verify.
import os, uuid, requests res = requests.post( "https://api-diotp.diorbit.com/v1/otp/send", headers={ "Authorization": f"Bearer {os.environ['DIOTP_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "to": "9876543210", "country_code": 91, "channel": "voice", "purpose": "login", }, timeout=10, ) otp = res.json() # Keep otp["request_id"]: you need it to verify.
<?php $ch = curl_init("https://api-diotp.diorbit.com/v1/otp/send"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer " . getenv("DIOTP_API_KEY"), "Content-Type: application/json", "Idempotency-Key: " . bin2hex(random_bytes(16)), ], CURLOPT_POSTFIELDS => json_encode([ "to" => "9876543210", "country_code" => 91, "channel" => "voice", "purpose" => "login", ]), ]); $otp = json_decode(curl_exec($ch), true); // Keep $otp["request_id"]: you need it to verify.
curl -X POST https://api-diotp.diorbit.com/v1/otp/verify \ -H "Authorization: Bearer $DIOTP_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "code": "482913" }'
const res = await fetch("https://api-diotp.diorbit.com/v1/otp/verify", { method: "POST", headers: { Authorization: `Bearer ${process.env.DIOTP_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ request_id: requestId, code: codeTheUserTyped }), }); if (res.ok) { // The number is verified: sign the user in. } else { const { error } = await res.json(); // e.g. error.code === "invalid_code" }
res = requests.post(
"https://api-diotp.diorbit.com/v1/otp/verify",
headers={"Authorization": f"Bearer {os.environ['DIOTP_API_KEY']}"},
json={"request_id": request_id, "code": code_the_user_typed},
timeout=10,
)
if res.ok:
pass # The number is verified: sign the user in.
else:
error = res.json()["error"] # e.g. error["code"] == "invalid_code"<?php $ch = curl_init("https://api-diotp.diorbit.com/v1/otp/verify"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer " . getenv("DIOTP_API_KEY"), "Content-Type: application/json", ], CURLOPT_POSTFIELDS => json_encode([ "request_id" => $requestId, "code" => $codeTheUserTyped, ]), ]); $body = json_decode(curl_exec($ch), true); $verified = curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200;
Send endpoint reference Verify endpoint reference Webhook events
Voice OTP service pricing
Each call will be charged from the same prepaid wallet as SMS, with no setup fee and no monthly fee. The per-call rate is quoted for your account; ask us for it. For reference, OTP SMS costs from ₹0.26 per OTP on prepaid plans, before 18% GST.
In your dashboard
A call that gets the message across
Read codes aloud for users who cannot receive SMS, or confirm orders and remind customers with a call they can answer with a key press.
- Codes read twice, clearly
- Keypad responses captured
- Answered, missed and duration in reports
Use it for
Where businesses use it most
Each of these suits a call better than a text, because the phone cannot show an SMS or a spoken message is harder to miss.
- OTP for landlines and feature phones
- Order confirmation calls
- Payment reminders
- Announcements
Industries
Voice calls across industries

E-commerce & D2C
Confirm cash-on-delivery orders with an OTP before you ship, and keep buyers posted from checkout to doorstep.
Get started
Clinics, labs & hospitals
Confirmations, reminders and report-ready alerts that patients actually read, in their own language.
Get started
Logistics & delivery
Delivery OTPs at the door, live status updates on the way, and pickup alerts for your riders.
Get startedVoice calls: FAQs
Users on landlines or basic feature phones, users who find a spoken code easier than a text, and anyone whose SMS has not arrived after the resend timer.
No. Voice will use the same POST /v1/otp/send and POST /v1/otp/verify calls as SMS, with the channel set to voice. Your request_id, expiry and attempt handling stay the same.
Nothing is verified. The user can ask for a new code, and the same resend cooldown and per-number limits apply as on SMS, so repeated calls cannot drain your balance.
Voice calls are charged per call from your prepaid wallet, with no setup or monthly fee. The rate is quoted for your account; ask us for it.
DLT registration covers SMS. If you also send SMS from your own sender ID you will already have it; voice calls are placed from a number we provide.
Keypad responses, such as press 1 to confirm, suit confirmation and reminder calls. Tell us how you would use them and we will advise.
The same things as for SMS: codes generated and checked on the provider side, limits per number so calls cannot be used to flood a phone, a clear per-call price, and call outcomes in reports. DiOTP plans all of these for voice, on the same API and wallet as SMS, once the channel opens.
They are related. A voice SMS API usually turns a short text into an automated call. A spoken one-time code is one use of that idea, where the text is a one-time code read out digit by digit and checked when the user types it back. Talk to us about it on DiOTP.
More products
One account for every channel
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.
