Aadhaar eSign API Integration Guide for Developers
By Bhupinder Singh
What Is Aadhaar eSign and Why Developers Care
Aadhaar eSign is a cloud-based electronic signature service backed by UIDAI. When a user signs a document via Aadhaar eSign, they enter their Aadhaar number, receive a one-time password on their registered mobile, and that OTP triggers the issuance of a short-lived signing certificate by a licensed Certificate Authority (CA). The result is a cryptographically valid digital signature embedded in the PDF — legally equivalent to a Class 3 DSC under the Information Technology Act, 2000.
For product teams, this matters because it eliminates the need for physical signatures, USB tokens, and in-person verification. The signer can be anywhere in India, and the entire flow completes in under two minutes. Banks, NBFCs, insurance companies, HR platforms, and legal tech products have made Aadhaar eSign the standard for remote agreement execution.
The Aadhaar eSign Flow: What Actually Happens
Understanding the technical flow helps you decide whether to build it yourself or use a platform. Here is what happens under the hood on every Aadhaar eSign transaction:
- Your application calls the eSign API with a document hash and signer details.
- The eSign Service Provider (ESP) — a licensed CA — sends an authentication request to UIDAI's Authentication Service.
- UIDAI triggers an OTP to the mobile number linked to the signer's Aadhaar.
- The signer enters the OTP in your application UI.
- UIDAI validates the OTP and returns a signed authentication response to the ESP.
- The ESP issues a signing certificate — valid for a single transaction — and signs the document hash.
- The signed certificate and signature are embedded in the PDF, creating a tamper-evident signed document.
Each step involves encrypted communication, HSM-backed certificate issuance, and compliance with the Controller of Certifying Authorities (CCA) audit requirements. The signed document carries a timestamp from a TSA (Time Stamping Authority), making the signature legally long-term valid even after the short-lived certificate expires.
Skip the infrastructure — integrate Aadhaar eSign via SupaDoc's API in days
No CA empanelment, no HSM setup, no UIDAI compliance audits. One API key and a single POST endpoint gets your app signing documents with Aadhaar OTP.
Start free →What It Takes to Build Aadhaar eSign In-House
If you are evaluating a DIY integration, here is an honest accounting of what is involved.
Certificate Authority empanelment
To issue signing certificates, your platform must either become a licensed CA under the CCA or partner with an existing one. Becoming a CA requires physical infrastructure audits, HSM procurement, security policy documentation, and CCA approval — a process that typically takes 6–12 months and significant capital outlay. Most product teams partner with an existing CA (eMudhra, Capricorn, NeSL, or others) instead, which requires a commercial agreement and integration with that CA's proprietary API.
UIDAI authentication integration
Your CA partner handles UIDAI authentication, but you still need to integrate with the CA's eSign API, handle authentication request/response XML payloads (UIDAI uses a specific XML schema), manage OTP delivery timing (OTPs expire in 10 minutes), and handle failures — expired OTPs, Aadhaar-mobile mismatch, UIDAI service downtime.
HSM and timestamp authority
The signing key must reside in a Hardware Security Module (HSM). If you are building your own signing infrastructure, procuring, deploying, and auditing an HSM adds cost and lead time. Additionally, embedding a trusted timestamp (from a TSA) requires a separate integration to ensure long-term signature validity.
Compliance, audit, and ongoing obligations
CCA-licensed operations require quarterly compliance audits, incident reporting, certificate revocation infrastructure (OCSP/CRL), and adherence to the Information Technology (Certifying Authorities) Rules, 2000. These are ongoing operational obligations, not a one-time integration task.
In practice, most product teams spending honest time on this estimate 3–6 months from kickoff to a production-ready Aadhaar eSign integration, assuming a CA partnership is in place. Teams that underestimate the compliance layer often take longer.
Using SupaDoc's Aadhaar eSign API Instead
SupaDoc exposes Aadhaar eSign as a managed API. The integration surface is intentionally small:
What the API looks like
To create a signing envelope programmatically:
- One
POST /api/envelopescall with the document, signer details (name, email, mobile), and field positions. - SupaDoc handles the CA interaction, UIDAI OTP flow, signing, and audit certificate generation.
- A webhook fires on completion with the signed document URL and audit trail.
Authentication is an API key passed in the Authorization header. No OAuth flows, no XML payloads, no HSM management.
Webhooks and status polling
Every envelope has a status lifecycle: draft → sent → partially_signed → completed (or declined / expired). Your application can poll the envelope status endpoint or subscribe to webhook events for each transition. Completed envelopes return a signed PDF URL and an audit certificate URL — both tamper-evident and permanently accessible.
Embedded signing UI
If you want the signing flow inside your own product rather than redirecting to a SupaDoc page, embedded signing iframes are available. The signer sees your branding; SupaDoc handles the OTP flow, certificate issuance, and PDF embedding in the background.
Compliance Checklist Before You Go Live
Whether you build in-house or use a platform, verify these before accepting production signatures:
- Aadhaar-mobile linkage: Confirm signers' Aadhaar is linked to an active mobile number. A mismatch is the most common cause of OTP non-delivery.
- Consent capture: UIDAI requires explicit user consent before initiating authentication. Display and log a consent statement before triggering the OTP.
- Audit trail retention: Signed documents and audit certificates should be stored for the document's legal retention period (typically 7–8 years for agreements).
- DPDP Act obligations: Aadhaar numbers processed during authentication are personal data under the DPDP Act, 2023. Ensure your data processing agreement with the CA/ESP covers this, and that your privacy notice discloses Aadhaar authentication.
- Document integrity: Never modify a PDF after signing — this invalidates the embedded signature. If amendments are needed, create a new version and re-sign.
- Long-term validation (LTV): Ensure your signed PDFs embed the OCSP response at signing time, so the signature remains verifiable after the short-lived certificate expires.
When Aadhaar eSign Is Not the Right Tool
Aadhaar eSign covers most agreement signing use cases, but there are exceptions:
- Non-Indian signers: Aadhaar eSign requires an Aadhaar number. For international signers, use OTP-based eSign or a physical DSC workflow.
- High-frequency batch signing: Aadhaar eSign requires signer interaction per document. For bulk signing of outgoing documents (invoices, certificates), a Class 3 DSC or server-side signing is more appropriate.
- Documents requiring notarisation: Notarised documents in India still require physical execution in most states. eSign covers the agreement layer, not notarisation.
Add Aadhaar eSign to your product — without building the infrastructure
SupaDoc's API handles CA integration, UIDAI authentication, HSM signing, and audit trails. Your team ships the feature in days, not months.