Building a telehealth video consultation app in India: architecture, privacy and cost

A telehealth app needs four things from its video layer: one private call per consult, joined with short-lived tokens from your server (you can prototype with just an App Key and no backend); a clear answer on what is stored (with Titli: metadata only, no recording); behaviour you can rely on when the patient’s network is weak; and a bill you can predict. At the list price a 15-minute doctor video consult costs ₹6.00 ($0.069) in call minutes. This is engineering guidance, not medical or legal advice.

Prototype without a backend, launch with server tokens. To try calls, add your App Key in the app and start a call: no server is needed (Flutter guide). A telehealth app already has a backend for appointments and records, and for real consults we recommend server tokens (production hardening): only your server creates a consult’s call and decides who may join it. The rest of this guide assumes that setup.

The architecture: who does what

The mistake to avoid is treating the video SDK as the product. In a telehealth app the consult is one event inside a longer record that you own: booking, payment, intake, prescription, follow-up. Keep those in your backend and let the video layer do one job.

PartRuns whereWhat it holds
Patient and doctor appsThe phone or browserA session with your backend. For a call: one join token and a media URL. Never an API key.
Your backendYour serversAccounts, doctor verification, appointments, payments, prescriptions, consent records, the Titli API key.
Titli REST APIapi-videosdk.titliapp.comCalls, tokens, usage and receipts, addressed by your own pseudonymous ids.
Titli media serversIndiaLive audio and video in transit. Nothing is recorded or stored.
WebhooksTitli to your backendSigned events: who joined, when the call connected, when it ended, and the receipt.

From appointment to receipt

  1. Your serverThe appointment time arrivesYour scheduler opens the consult for the doctor and the patient. Nothing has been created on Titli yet.
  2. Your server → TitliCreate one call for this consultPOST /v1/calls with the type and a max_duration_seconds that matches the slot. Store the call id on the appointment.
  3. Your server → TitliMint a token when each person taps JoinPOST /v1/calls/{call_id}/tokens, once per person, with a short lifetime.
  4. Both appsJoin the private roomMedia is encrypted in transit and adapts to each person’s network. Billing starts when the second person connects.
  5. Your serverClose the consultWhen the doctor ends it in your app, call POST /v1/calls/{call_id}/end so it is closed for both.
  6. Titli → your serverKeep the receiptThe call.ended webhook carries a signed receipt with the exact connected time. File it with the appointment.

Private 1:1 rooms and short-lived tokens

Privacy here is structural, not a setting. A call exists only because your server created it, and a person can enter only with a token your server minted for that one call and that one identity.

terminal
API=https://api-videosdk.titliapp.com
AUTH="$TITLI_KEY_ID:$TITLI_KEY_SECRET"   # server only, never in the app

# One private call per appointment. The cap is the slot length plus a short grace period (here 20 minutes).
curl -s -u "$AUTH" -H 'Content-Type: application/json' \
  -d '{"type":"video","payer_end_user_id":"pt_7f3a91","max_duration_seconds":1200}' \
  $API/v1/calls
# -> { "id": "<call_id>", "status": "created", "livekit_url": "wss://…", ... }

# One token per person, minted when that person taps Join, valid for 2 minutes.
curl -s -u "$AUTH" -H 'Content-Type: application/json' \
  -d '{"end_user_id":"pt_7f3a91","role":"user","name":"Patient","ttl_seconds":120}' \
  $API/v1/calls/<call_id>/tokens
curl -s -u "$AUTH" -H 'Content-Type: application/json' \
  -d '{"end_user_id":"dr_2c44e0","role":"host","name":"Doctor","ttl_seconds":120}' \
  $API/v1/calls/<call_id>/tokens
# -> { "token": "eyJ…", "livekit_url": "wss://…", "expires_at": "…", ... }

# An audio follow-up is the same two requests with "type":"audio".

Four details matter more in health than elsewhere:

  • Use pseudonymous ids. end_user_id is your own id for a person. Send an opaque id such as pt_7f3a91, never a phone number, an email or a health record number. The display name is optional, so a neutral label is enough.
  • Keep tokens short. ttl_seconds can be as low as 30. Minting at the moment of joining with a two-minute lifetime means a token copied from a device is useless soon after. Expiry limits when someone can join, not how long the consult lasts.
  • Rooms hold two people by default. A third person cannot join unless support has raised the room size for your account (up to 50), for example for a family member or an interpreter.
  • One identity, one connection. If the same end_user_id joins from a second device, the older connection is dropped.

Your backend can also close things itself:

terminal
# The doctor closed the consult in your app: end the call for everyone and keep the receipt with the appointment.
curl -s -u "$AUTH" -X POST $API/v1/calls/<call_id>/end
curl -s -u "$AUTH" $API/v1/calls/<call_id>/receipt
# -> { "receipt": { … }, "signature": "base64…", "algorithm": "Ed25519", "key_id": "…" }

# Someone is in the room who should not be: disconnect that one participant.
curl -s -u "$AUTH" -X POST $API/v1/calls/<call_id>/participants/<end_user_id>/remove

A removed participant’s token stays valid until it expires, which is one more reason to keep lifetimes short. Every field is in the REST API reference.

Under India’s Digital Personal Data Protection Act, 2023, the app that decides why and how patient data is processed is the data fiduciary. That is you. A video vendor that carries calls on your instructions is your data processor, and the Act expects a contract between the two. Ours is the Data Processing Addendum, and the technical measures are on the security page.

TopicYour appTitli Video SDK
Consent for a video consultCollect and store it, in your own words and flowNot involved; we never see your consent screen
Identity of patients and doctorsYou verify and hold itSees only the ids and display names you send
Call contentSeen and heard by the two participantsCarried in real time, encrypted in transit, not recorded
Call recordsAppointment, notes, prescriptionMetadata only: which id joined which call and for how long
Deletion requestsYou receive them from the patientActs on your written request, as your processor

Two practical rules follow. Do not put health information in anything you send to a video vendor: not in the end_user_id, not in the display name, not in metadata. And write your privacy notice to say plainly that a processor carries the call and that the call is not recorded.

This article is not legal or medical advice. Telemedicine in India has its own practice rules for doctors, and the core DPDP Rules apply from 13 May 2027. Which rules apply depends on what your app does and whom it serves. Check them with your own legal and clinical advisers before launch.

No recording and no certifications, stated plainly

  • No recording. Titli has no cloud recording product. Audio and video are never stored, so there is nothing to leak later and nothing to replay. If your policy or a regulator requires you to keep a recording, you cannot get it from this API.
  • No HIPAA, SOC 2 or ISO 27001 certification today. If you sell to hospitals or to overseas buyers who require a certified vendor, ask for that requirement in writing early, because it decides the vendor before any feature does.
  • No uptime SLA and one media region (India). Build your consult flow so that a failed call can be restarted or moved to audio without the patient losing the appointment.
  • What does exist: TLS for signalling and DTLS-SRTP for media between every device and the servers, tokens scoped to one room and one identity, metadata-only logs and an audit log of operator actions.

Weak-network behaviour

Patients call from wherever they are: a village on crowded 4G, a hospital corridor, a moving car. Plan the consult around that instead of around office Wi-Fi.

  • Video adapts. Video goes up to 720p and steps down with the network; voice keeps going when video cannot.
  • Short drops are absorbed. The SDKs report a reconnecting state while they recover. If everyone drops, the call stays open for 30 seconds and a quick rejoin continues the same call. Nothing is billed while fewer than two people are connected.
  • Long drops need your help. When the network does not come back, the SDK ends with a connection-lost reason. Let the patient rejoin the same consult from the appointment screen: your server mints a fresh token for the same call if it is still open, or creates a new call if it has ended.
  • Give the doctor a way out. A button that says “Continue on audio” ends the video call and starts an audio call for the same appointment. Turning the camera off inside a video call keeps the consult alive, but it is still a video call.

Follow-ups on audio

Many follow-ups do not need a camera: a report review, a dose check, a quick question a day after the consult. Create those with "type": "audio". Audio tokens can publish only the microphone, the app shows a voice layout, and the price is lower: ₹0.05 per participant-minute instead of ₹0.20. A 10-minute audio follow-up is 2 × 10 × ₹0.05 = ₹1.00. Details are on the voice call API page.

What consults cost, in INR and USD

Billing is per participant-minute, per second, only while both people are connected. A doctor who joins two minutes early and waits is not billed for the wait.

ScenarioParticipant-minutesINR accountUSD account
One 15-minute video consult2 × 15 = 30₹6.00$0.069
One 15-minute audio consult30₹1.50$0.0171
One 10-minute audio follow-up20₹1.00$0.0114
1,000 video consults a month30,000₹6,000$69.00
1,000 audio consults a month30,000₹1,500$17.10
700 video consults and 300 audio follow-ups27,000₹4,500$51.72

List prices are ₹0.20 (video) and ₹0.05 (audio) per participant-minute for Indian accounts, and $0.0023 and $0.00057 for international accounts, excluding taxes. There is no setup fee or monthly fee; you recharge a prepaid balance by UPI or bank transfer, and the smallest recharge of ₹500 covers 83 video consults of 15 minutes. USD accounts recharge by USDT or bank wire; card payments are not available. Use the calculator on the pricing page for your own numbers.

One limit to plan for: a new account can run 5 calls at the same time. 1,000 consults a month is roughly 33 a day, which fits easily if they are spread out, but a clinic where more than 5 doctors start a consult at the same minute needs the limit raised first. Ask support before launch.

A pre-launch checklist

  • The API key is only on your server, and tokens are minted at join time with a short lifetime.
  • Ids sent to the video API are opaque, and no health data is in names or metadata.
  • Consent for a video consult is collected and stored by your app before the first call.
  • The appointment stores the call id, the receipt and its signature.
  • A dropped consult can be rejoined, and can continue on audio.
  • The concurrent-call limit covers your busiest hour, and a balance.low webhook reaches someone who can recharge.
  • Your advisers have confirmed which telemedicine and data protection rules apply to you.

Frequently asked questions

Do I need a backend for a telehealth video app?

Not to make a call: with an App Key the app can start and join calls with no backend, which is fine for a prototype. For real consults, use server tokens (production hardening): your backend already holds appointments and records, and it should be the only place that creates a consult’s call and lets the doctor and patient in.

Is Titli Video SDK HIPAA or SOC 2 certified?

No. Titli holds no HIPAA, SOC 2 or ISO 27001 certification today. Media is encrypted in transit, calls are not recorded and logs hold metadata only. If your buyers or regulators require a certified vendor, that requirement rules us out for now.

Are video consultations recorded or stored?

No. Titli has no cloud recording. Audio and video pass through the media servers in real time and are never stored. If you must keep a recording of each consult, you need a different tool for that part.

What does a 15-minute doctor video consultation cost?

A doctor and a patient for 15 minutes is 30 participant-minutes. At the list price that is 30 × ₹0.20 = ₹6.00 on video ($0.069 on a USD account) and 30 × ₹0.05 = ₹1.50 on audio ($0.0171).

Where are the media servers?

In India. Calls between users in India are not routed abroad. There is one media region today, so test call quality yourself if many of your patients or doctors are outside South Asia.

Can a family member or interpreter join the consultation?

Calls hold two people by default. Support can raise the room size for your account, up to 50 people, and your server then mints a token for the extra person too.

Does using this API make my app compliant with telemedicine rules?

No. A video API is one component. Consent, doctor verification, prescriptions, record keeping and the privacy notice are your responsibility, and you must check the regulations that apply to your app with your own advisers.

Next steps

Free SDK. Pay only for the minutes you use.

Create a free account: it starts with ₹100 welcome credit, about 250 minutes of 1:1 video, so your first call needs no recharge. Questions? Message us on WhatsApp and a person replies.

Start free