Government & Nonprofit

Digital Public Infrastructure Explained: Lessons From India's Stack

December 4, 2026 · 11 min read

Digital Public Infrastructure Explained: Lessons From India's Stack

In little more than a decade, India built shared digital systems that now let more than a billion people prove their identity, send money instantly and share data with their consent. Other countries are studying and adapting the model. This approach is called digital public infrastructure (DPI): open, interoperable digital systems that serve as a foundation for both public and private services. This guide explains what DPI is, the components of India Stack, the results it has achieved, the criticisms and risks, lessons for other countries, a tested example of consent-based data sharing, and what DPI means for developers and businesses.

What Is Digital Public Infrastructure?

Digital public infrastructure is a set of shared digital systems, usually supported by government and governed in the public interest, that many organisations can build on. Think of it like roads: the government provides the road network, and businesses, citizens and public services use it for countless purposes. The most common DPI building blocks are:

  • Digital identity: a way for people to prove who they are online.
  • Digital payments: instant, low-cost, interoperable payment rails.
  • Data exchange: consent-based systems for sharing personal data between organisations.

What distinguishes DPI from an ordinary government IT system is its openness: public standards and APIs that private companies can build on, and governance designed to promote competition and inclusion.

India Stack: The Best-Known Example

LayerComponentWhat it does
IdentityAadhaarA 12-digit unique ID with biometric and OTP authentication and e-KYC
PaymentsUPI (Unified Payments Interface)Instant bank-to-bank payments using simple addresses and QR codes
DocumentsDigiLockerIssued documents such as licences and certificates stored and shared digitally
Consent and dataAccount Aggregator framework (DEPA)Consent-based sharing of financial data between regulated entities
CommerceONDCAn open network connecting buyers and sellers across platforms
HealthAyushman Bharat Digital MissionHealth IDs and interoperable health records

The scale is remarkable. UIDAI's dashboard reports more than 144 crore (1.44 billion) Aadhaar numbers generated. UPI set a new record in August 2026, processing 24.51 billion transactions in a single month according to NPCI data. These systems are used by banks, fintechs, telecom operators, retailers and government departments alike.

Why the Model Worked

  • Shared rails, private innovation: the government and NPCI built the rails, while dozens of apps competed to build payment experiences on top.
  • Interoperability by design: any UPI app can pay any bank account, so users are not locked into one provider.
  • Minimal cost for users: zero or very low fees for person-to-person and small merchant payments encouraged adoption.
  • Simple experiences: QR codes and memorable payment addresses replaced account numbers.
  • Regulatory backing: rules required banks to participate and set standards for security and dispute handling.
  • Layering: identity made it cheap to open bank accounts; bank accounts made digital payments possible; payment data, shared with consent, made credit more accessible.

Criticisms and Risks

DPI is not without problems, and any country adapting it should learn from the debates:

  • Exclusion: people whose fingerprints fail to authenticate, or who lack documents or connectivity, can be denied services if there is no fallback.
  • Privacy and surveillance: central identity systems create risks if data is linked across contexts or misused. Strong legal safeguards and data protection laws are essential.
  • Security: systems at national scale are major targets, and data leaks from connected databases have been reported.
  • Concentration: a few apps can dominate even on open rails, raising competition questions.
  • Mandatory use creep: systems introduced as voluntary can become effectively mandatory for everyday services.

Consent-Based Data Sharing: A Tested Example

The data layer of DPI rests on a simple idea: personal data should move between organisations only with a specific, time-limited, purpose-bound consent that the person can revoke. In India's Account Aggregator framework this is captured in a consent artefact. This Python example models such a check before a lender fetches bank statements.

# consent_artefact.py - a DEPA-style consent check before a lender can fetch bank statements
from datetime import date

consents = {
    "CN-501": {"user": "riya@upi", "requester": "LenderCo", "purpose": "loan-underwriting",
               "data": {"bank_statements"}, "from": date(2026, 6, 1), "to": date(2026, 11, 30),
               "expires": date(2026, 12, 31), "revoked": False, "fetches_left": 2},
    "CN-502": {"user": "aman@upi", "requester": "LenderCo", "purpose": "loan-underwriting",
               "data": {"bank_statements"}, "from": date(2026, 1, 1), "to": date(2026, 6, 30),
               "expires": date(2026, 9, 30), "revoked": False, "fetches_left": 1},
}

def fetch(consent_id, requester, data_type, period_from, period_to, today):
    c = consents.get(consent_id)
    if not c:                                return "denied: unknown consent"
    if c["revoked"]:                         return "denied: user revoked consent"
    if today > c["expires"]:                 return "denied: consent expired"
    if requester != c["requester"]:          return "denied: consent was given to someone else"
    if data_type not in c["data"]:           return f"denied: {data_type} not covered"
    if period_from < c["from"] or period_to > c["to"]:
        return "denied: date range wider than agreed"
    if c["fetches_left"] == 0:               return "denied: fetch limit reached"
    c["fetches_left"] -= 1
    return f"allowed: {data_type} {period_from}..{period_to} for {c['purpose']} ({c['fetches_left']} fetches left)"

today = date(2026, 12, 2)
print(fetch("CN-501", "LenderCo", "bank_statements", date(2026, 6, 1), date(2026, 11, 30), today))
print(fetch("CN-501", "AdTechCo", "bank_statements", date(2026, 6, 1), date(2026, 11, 30), today))
print(fetch("CN-501", "LenderCo", "tax_returns", date(2026, 6, 1), date(2026, 11, 30), today))
print(fetch("CN-501", "LenderCo", "bank_statements", date(2025, 1, 1), date(2026, 11, 30), today))
print(fetch("CN-502", "LenderCo", "bank_statements", date(2026, 1, 1), date(2026, 6, 30), today))
consents["CN-501"]["revoked"] = True
print(fetch("CN-501", "LenderCo", "bank_statements", date(2026, 6, 1), date(2026, 11, 30), today))

Output:

allowed: bank_statements 2026-06-01..2026-11-30 for loan-underwriting (1 fetches left)
denied: consent was given to someone else
denied: tax_returns not covered
denied: date range wider than agreed
denied: consent expired
denied: user revoked consent

The lender's first request succeeds because it matches the requester, data type, date range and fetch limit the user agreed to. An advertising company using the same consent ID is refused, as is a request for tax returns that were not covered, and a request for a wider date range. A second user's consent has expired, and once the first user revokes consent, even the original lender is blocked. Real frameworks add digital signatures on consent artefacts, encryption between data provider and consumer so intermediaries cannot read the data, and audit trails the user can see.

DPI Around the World

Many countries have their own versions of DPI components, sometimes predating India Stack. Estonia's X-Road data exchange and national eID underpin almost all its public services. Brazil's Pix instant payments system grew extremely quickly after its 2020 launch. Singapore's Singpass provides national digital identity, and the European Union is rolling out digital identity wallets. International bodies and coalitions promote DPI as a route to financial inclusion and better public services, and open-source projects such as MOSIP (for identity) let countries adopt components without building from scratch.

Lessons for Other Countries

  1. Start with a clear problem, such as financial inclusion or welfare leakage, rather than technology for its own sake.
  2. Pass data protection law first, or at least alongside, with independent oversight.
  3. Design open APIs and standards so the private sector can innovate on top.
  4. Build in fallbacks so nobody is excluded when technology fails.
  5. Use federated designs where possible to reduce central data concentration.
  6. Invest in security and resilience from day one.
  7. Measure inclusion, not just transaction volumes.

What DPI Means for Developers and Businesses

For businesses, DPI dramatically lowers the cost of reaching customers. Instead of building proprietary identity checks or payment networks, a start-up can integrate with national rails through regulated partners. Opportunities include:

  • Payments: accepting instant payments with QR codes and collect requests; our guides to payment gateway integration and digital wallet app development explain the patterns.
  • Onboarding: using national e-KYC and document wallets to verify customers quickly; see our guide to KYC verification.
  • Lending: using consented financial data for underwriting small loans, which ties into embedded finance.
  • Commerce: joining open commerce networks to reach buyers without depending on one marketplace.
  • Public services: building citizen-facing apps on government APIs; our guide to GovTech covers that ecosystem.

Developers must respect the rules that come with these rails: certification processes, security requirements, consent flows and limits on storing identity numbers. Similar concepts appear in Europe and elsewhere under open banking and open finance regulation.

Building on DPI: Technical Considerations

  • Work through licensed intermediaries such as payment service providers or account aggregators, as direct access is usually restricted.
  • Design for very high volumes and spikes, for example festival shopping days.
  • Handle asynchronous outcomes: payments and data fetches may succeed, fail or time out; use idempotency keys and reconciliation.
  • Protect identifiers: mask or tokenise national ID numbers and avoid storing biometric data.
  • Offer non-digital alternatives where users may be excluded.

How Much Does Building on DPI Cost?

The figures below are indicative estimates for commercial products built on existing DPI rails.

ProjectTypical scopeIndicative cost
Instant payment acceptanceQR payments, payment links, webhooks, reconciliationRoughly $15,000 to $50,000
Digital onboarding with e-KYCIdentity and document integration through a provider, risk checksRoughly $30,000 to $90,000
Consent-based lending platformData fetch, underwriting rules, loan management, collectionsRoughly $120,000 to $350,000
National DPI componentGovernment-scale identity, payments or data exchangeTens of millions, delivered over years

Governance: Who Runs the Rails?

A distinctive feature of successful DPI is its governance. UPI is operated by NPCI, a not-for-profit organisation owned by banks and overseen by the central bank, rather than by a single commercial company. Identity is run by a statutory authority. Rules for participants, such as dispute resolution timelines, security standards and fee caps, are set centrally, while competition happens in the apps built on top. This separation matters: it stops any one company controlling access, keeps standards open, and gives regulators clear points of accountability. Countries adapting DPI should think as carefully about governance and funding as about technology, including how the infrastructure will be paid for once initial government funding ends.

Open-Source Building Blocks

Countries do not have to build DPI from scratch. Open-source projects offer reusable components: MOSIP for foundational identity, open-source payment switches, consent and data exchange frameworks, and government platforms for registries and services. Using shared components reduces cost and lock-in and lets countries learn from each other's experience. The hard part is rarely the code; it is the legal framework, institutional design, enrolment logistics, security operations and ongoing funding. Countries that succeed treat DPI as a long-term public institution with stable governance, not as a one-off IT project, and involve civil society in decisions about privacy and inclusion.

Measuring Success

GoalExample measures
InclusionShare of adults with identity and accounts, by gender, region and income
AdoptionActive users, merchants accepting digital payments, services integrated
EfficiencyCost per transaction, welfare leakage reduced, onboarding time
TrustAuthentication failure rates, fraud rates, complaints resolved
CompetitionNumber of active providers and market concentration

Key Takeaways

  • Digital public infrastructure works best as shared rails with open APIs, governed in the public interest, while private providers compete on top.
  • India's identity, payments and consent layers reinforced each other, cutting the cost of accounts, payments and credit.
  • Strong data protection law, consent-based data sharing and inclusion safeguards are as important as the technology.
  • Governance and long-term funding decide whether DPI lasts beyond its launch.
  • Businesses can build faster and cheaper on DPI rails, but must follow certification, security and consent rules.
  • Open-source components help countries adopt DPI without starting from scratch.

Frequently Asked Questions

Does digital public infrastructure replace private companies?

No. DPI provides shared rails such as identity, payments and data exchange, while banks, fintechs and other businesses compete to build services and apps on top of them.

Who operates UPI?

UPI is operated by the National Payments Corporation of India (NPCI), a not-for-profit organisation set up by banks under the guidance of the Reserve Bank of India.

What is digital public infrastructure?

Shared, open digital systems such as identity, payments and data exchange that governments provide or support so that public and private services can build on them.

What is India Stack?

The collection of Indian DPI components, including Aadhaar identity, UPI payments, DigiLocker documents and the Account Aggregator consent framework.

Can other countries copy India's model?

Many are adapting it, often using open-source components. Success depends on local laws, institutions, data protection and inclusion safeguards.

Is digital public infrastructure safe for privacy?

It can be, with strong data protection law, consent-based sharing, minimal central data, federated designs and independent oversight. Weak safeguards create serious risks.

How do businesses use DPI?

For instant payments, fast customer onboarding, consented data sharing for lending and access to open commerce networks.

What is a consent artefact?

A machine-readable record of what data a person agreed to share, with whom, for what purpose and for how long, which systems check before data moves.

Build on Digital Public Infrastructure

DPI lowers the cost of building inclusive financial and public services. Our team builds payment integrations, onboarding flows and consent-aware platforms for fintechs, lenders and public sector partners. Contact us to discuss your project.

Want this built for you?

Our team offers Website Deploy On Vercel — get a free quote.

View Services