OTP without DLT for clinics and doctors
A clinic can use OTP without DLT today for patient portal logins, sign-ups and checking a patient's mobile number when they book online. The shared template says "login OTP", so appointment reminders, report-ready alerts and follow-up messages still need the clinic's own DLT registration. The code message carries only the code and your clinic name, never any health detail.
By Vivek Singh, Founder, Diorbit TechnologiesUpdated
Key facts
- Price
- ₹0.26 to ₹0.40 per OTP plus 18% GST, from a prepaid wallet. No setup fee, no monthly fee.
- Setup time
- Same day. Test on your own number in minutes, then go live.
- Sender name
- DIORBT, DiOTP's registered header (shown with an operator prefix, for example VM-DIORBT).
- Message
- "123456 is your login OTP for Your Company. Do not share it with anyone. Powered by Diorbit Technologies!" The wording is fixed; your company name fills the name slot.
- Compliance
- Sent under DiOTP's own registered DLT entity, header and pre-approved OTP template. You register nothing.
- Limits per number
- 1 code every 30 seconds, 3 per hour, 10 per day.
- Later
- Move to your own sender ID when your DLT registration is ready, with no code changes.
Where does an OTP fit in a clinic's day?
Most clinics and doctors' practices meet OTPs in three places. A patient books a slot on the website or a booking app and types a mobile number. A returning patient logs in to a portal to see past prescriptions, invoices or lab reports. A doctor or receptionist logs in to the practice software from a new device. In each case the question is the same: is this phone number really held by the person in front of the screen?
You can answer that question without waiting for your own DLT registration. DiOTP sends the code through its own registered DLT entity, the DIORBT header and a pre-approved OTP template, with your clinic's name in the message. The general healthcare OTP page covers hospitals and health apps more broadly; this page is about the smaller practice that wants verified bookings and safe logins this week.
Which clinic messages suit the shared login OTP template?
Say it plainly: the shared template is a login and sign-up code, and its words cannot change. It fits these steps:
- Patient sign-up on your website or app, where the mobile number becomes the patient's ID.
- Patient portal login to view prescriptions, invoices or downloadable reports.
- Checking the mobile number on an online booking form before the slot is held.
- Staff login to the appointment or billing software from a new phone or computer.
- Teleconsultation login, so only the verified patient joins the call link.
These steps need your own DLT template, and the shared template will not send them:
- Appointment reminders and "your doctor is running late" messages.
- Booking confirmations with a date, time and doctor's name.
- "Your lab report is ready" alerts.
- Follow-up, vaccination or medicine refill reminders.
- Health camp invitations, check-up packages and any other offer, which are promotional and need consent.
Many clinics start with the shared template for the booking check and portal login, then register their own entity and templates for reminders. The two run side by side, and when your DLT registration is approved you add your own sender ID in the dashboard without touching the code.
How to verify a patient's number at booking
- On your booking form, ask for the patient's name, mobile number and preferred slot. Hold the slot for a few minutes as a draft, not a confirmed booking.
- From your server, call POST /v1/otp/send with the mobile number. DiOTP generates the code and sends it from DIORBT with your clinic's name in the message.
- Store the request_id with the draft booking. Never store or log the code; your server does not see it.
- Show a six-digit code box. When the patient types the code, call POST /v1/otp/verify with the request_id and the code.
- On a 200 response with verified true, confirm the booking and mark the number as verified on the patient record. On 410 expired, offer a new code; on 429 too_many_attempts, ask the patient to call the front desk.
- Show the confirmation on screen. If you also want to send it by SMS, send it on your own DLT template once you have one.
Here is the same flow in PHP, the language many clinic websites run on. The visit reason stays in your database and never goes near the SMS.
PHP: verify the patient's mobile before confirming a booking
<?php
// Step 1: the booking form was submitted. Send the code.
function diotp(string $path, array $body): array {
$ch = curl_init('https://api-diotp.diorbit.com/v1' . $path);
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($body),
]);
$res = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
return [$status, $res];
}
[$status, $res] = diotp('/otp/send', [
'to' => $_POST['mobile'], 'country_code' => 91,
'channel' => 'sms', 'purpose' => 'login',
]);
$_SESSION['draft_booking'] = ['slot' => $_POST['slot'], 'request_id' => $res['request_id'] ?? null];
// Step 2: the patient typed the code.
[$status, $res] = diotp('/otp/verify', [
'request_id' => $_SESSION['draft_booking']['request_id'],
'code' => $_POST['code'],
]);
if ($status === 200 && !empty($res['verified'])) {
confirm_booking($_SESSION['draft_booking']); // your own function
}What does the patient see on their phone?
The message is short and gives nothing away about the visit:
Text message
VM-DIORBT
305718 is your login OTP for City Clinic. Do not share it with anyone. Powered by Diorbit Technologies!
The wording is fixed, so you cannot add the doctor's name or the appointment time. For a clinic that is a feature, not a limit. An OTP can land on a shared family phone or show on a locked screen, and the patient's reason for visiting should never appear there.
How do you keep patient details out of SMS?
Privacy is the risk that sets clinics apart from most other users of OTP. A few habits keep you safe:
- Think about the name you put in the company slot. It holds up to 30 characters and shows on the lock screen. A specialist practice whose name reveals the condition it treats may prefer a neutral name, such as the doctor's or the group's name.
- Never put a diagnosis, test name, medicine or report link in any SMS, even on your own template later. Send a portal link and ask the patient to log in with an OTP instead.
- Treat the mobile number as a login, not as proof of who the patient is. Family members often share a phone, and a parent may book for a child or an elderly relative. Ask for the patient's name and age at the desk as usual.
- Keep the code out of your logs. DiOTP generates and stores it, and your server only holds the request_id.
- Let the built-in limits work: one code every 30 seconds, three an hour and ten a day per number, and five verify attempts per code. They stop someone guessing their way into a patient account.
The OTP security best practices guide goes further on session length, device checks and what to do after five wrong attempts.
What about walk-in patients and the front desk?
Not every patient books online. When a receptionist registers a walk-in patient, sending a code to the number they give is a quick way to catch a typo before the number is saved. The patient reads the code aloud, the receptionist types it, and the record is marked as verified. Later, that same number can log in to the portal to download the invoice.
Two cautions. First, the template says "Do not share it with anyone", so tell the patient why the desk is asking for it, or let the patient type it on a tablet at the counter. Second, staff logins to the clinic software should use the staff member's own phone, never a shared desk phone, so every login traces back to one person.
What does it cost a clinic?
The same as any OTP on DiOTP: ₹0.26 to ₹0.40 per OTP plus 18% GST, from a prepaid wallet. There is no setup fee, no monthly fee and no extra charge for the shared template. A small practice can start with the ₹100 OTP 1 plan, which covers 250 OTPs at ₹0.40 each. Codes blocked by a rate limit are not sent or charged. You can test first with 10 free messages to the mobile number you verified at sign-up, and the OTP SMS API without DLT page has every request and error code.
Questions and answers
Can a clinic send appointment reminders without DLT?
No. Appointment reminders, booking confirmations and report-ready alerts are not OTPs, so they need the clinic's own DLT entity, header and templates. The shared template only covers login, sign-up and phone number verification codes.
Does the OTP message mention the patient's health or doctor?
No. The shared template reads: code, then "is your login OTP for" and your clinic name, then a warning not to share it. Nothing about the visit, the doctor or the condition is included, and the wording cannot be changed.
Can I use the doctor's name instead of the clinic name?
Yes. The company name slot takes any name up to 30 characters, so you can use the doctor's name or a group name. Some specialist practices choose a neutral name so the lock screen does not reveal the kind of care.
What if a family shares one phone?
The OTP proves only that the person holds that phone. Let one verified number link to several patient profiles, ask for the patient's name at the desk, and keep in mind that the limits of 3 codes an hour and 10 a day apply to the number, not to each patient.
How quickly can a clinic start?
The same day. Sign up, test with 10 free messages to your own verified number, then recharge the wallet to send codes to any Indian mobile number.
Will we need to change the code when our own DLT registration is approved?
No. Add your entity ID, header and template ID under Sender IDs in the dashboard and keep calling the same endpoints. Codes then go out under your own header.
