Speak to an Expert

Healthcare

ABHA-Based Patient Identity: A Developer's Integration Guide

A developer's guide to ABHA patient identity: the Aadhaar and mobile creation flows, integrating through an HIE/CM partner, OTP verification, linking existing ABHAs, and the trade-offs to settle early.

Jul 9, 2026 · 5 min read
Cover reading ABHA patient identity, integrated, with a four-step panel: create via Aadhaar or mobile, integrate through an HIE/CM partner, store only the user to ABHA address link, and verify with an OTP every time.

ABHA (Ayushman Bharat Health Account) is becoming the patient identity standard in India, and ABHA patient identity is now something every team building consumer or clinical healthcare software will integrate. This guide is for developers and product owners planning that work: the two creation flows, the integration architecture, how verification and linking behave, the trade-offs to settle before you build, and the pitfalls that catch teams later.

Key takeaways

  • ABHA is a portable 14-digit health ID plus an "abha-address" handle.

  • Creation flows: Aadhaar-based (faster, requires Aadhaar) and mobile-based (broader coverage, more steps).

  • Verification: a short-lived, OTP-based confirmation each time the user proves the identity.

  • Integration: via the ABDM Gateway, through your registered HIE/CM partner.

  • Trade-offs: ABHA-first vs ABHA-optional dramatically changes UX and reach.

Why ABHA patient identity matters for your app

ABHA is being woven into PMJAY, ABDM-linked apps, and increasingly into hospital systems. Apps that support it earn portability: a patient can carry one identity across providers instead of starting from scratch in every system. Apps that leave it out will increasingly feel disconnected from the rest of the ecosystem. If you want the wider picture of how ABHA fits beside the facility and professional registries and the consent manager, read ABDM integration explained for developers first.

The two ABHA creation flows, compared

Aadhaar-based creation

  1. The user enters their Aadhaar number.

  2. The user gives consent.

  3. An OTP arrives from UIDAI and the user confirms it.

  4. The ABHA is created.

It is fast, typically 60-90 seconds, but it is limited to users with Aadhaar (most adults). The mechanics of Aadhaar OTP and consent are covered in more depth in our Aadhaar integration guide for developers.

Mobile-based creation

  1. The user enters their mobile number.

  2. The user verifies it with an OTP.

  3. The user enters basic demographic details.

  4. The ABHA is created.

It is slower, but it reaches more people.

Flow

What the user does

Speed

Reach

Aadhaar-based

Aadhaar number, consent, UIDAI OTP

Fast, 60-90 seconds

Users with Aadhaar (most adults)

Mobile-based

Mobile number, OTP, basic demographics

Slower, more steps

Broader

ABHA integration architecture through an HIE/CM partner

Your app does not talk directly to ABDM's central infrastructure. You integrate via a registered HIE/CM (Health Information Exchange / Consent Manager) partner. They provide SDKs and APIs that abstract the ABDM Gateway calls, so your code deals with the partner's interface rather than the gateway protocol itself.

When a patient creates or links ABHA in your app:

  1. Your app initiates the flow with your HIE/CM partner SDK.

  2. The user goes through the Aadhaar or mobile flow.

  3. On success, you receive the ABHA number and an authenticated session.

  4. You store the linkage (your user_id to ABHA address) in your database.

  5. For subsequent verifications, you re-trigger an OTP flow.

Step 4 is the only ABHA data you keep long term. An illustrative shape for that linkage, together with the audit log ABDM expects (more on that below), might look like this:

-- One row per link between your user and an ABHA address.
-- Users link, unlink and relink over time, so keep history.
create table abha_links (
  id            uuid primary key,
  user_id       uuid not null,
  abha_address  text not null,
  linked_at     timestamptz not null,
  unlinked_at   timestamptz
);

-- Every ABHA-related action gets a line.
create table abha_audit_log (
  id          uuid primary key,
  user_id     uuid not null,
  action      text not null,   -- create, link, verify, unlink
  occurred_at timestamptz not null
);

Verifying ABHA identity on subsequent visits

Each time you need verified ABHA identity (for example, before fetching health records via consent), the user must complete a short-lived verification, typically an OTP.

Linking patients who already have an ABHA

If a patient already has an ABHA from another app, they can link their existing ABHA address to your app instead of creating a new one. Build this flow: it gives returning users a smoother experience and avoids pushing them toward a duplicate identity. The same thinking about reducing first-run friction runs through our notes on patient onboarding UX for clinical apps.

Trade-offs to decide before you build

ABHA-first or ABHA-optional?

Approach

Reach

Interoperability

Typical fit

ABHA-first: every patient must have an ABHA

Narrower

Universal

Clinical features, once ABHA penetration is high

ABHA-optional: patients can use the app without ABHA

Wider

Users without ABHA miss out on cross-system records

Most consumer apps at launch

Most consumer apps go optional initially, then nudge users toward creation.

Aadhaar dependency

Some users will not share Aadhaar. Build the mobile-based path so you include them from day one.

Common ABHA integration pitfalls

  • Treating ABHA creation as a one-time event. Users link, unlink and recreate over time. Build for these flows.

  • Not handling Aadhaar opt-out. Some users will not use Aadhaar. Build the alternative.

  • Skipping the audit log. ABDM expects you to log every ABHA-related action.

What we recommend

Integrate ABHA as an option early. Track adoption. As ABHA penetration grows in your user base, you will feel more confident moving to ABHA-first for clinical features. If your product also handles data for users outside India, our guide to building HIPAA-compliant telehealth platforms in India covers the other side of the compliance picture.

FAQs

Do users need the ABDM app installed?

Some flows require it. Others are direct.

Can we create ABHA on behalf of patients?

No. The patient must consent and complete the flow themselves.

How is ABHA secured?

Through OTP-based authentication on each verification. ABHA itself is not a credential; it is an identifier.


Planning ABHA support for a clinical or consumer health product? Our healthcare engineering team builds ABDM-aware software end to end. Talk to Techpuvi about ABDM-aware healthcare engineering.

Niranjana serves as a Senior Architect at Techpuvi. She brings more than 15 years of experience in software development, having built several products from the ground up. Choosing to specialize as a full-stack engineer, she maintains a strong commitment to continuous learning.