AmpleTrails, Gurugram · since 2012 +91 93154 41053 WhatsApp info@ampletrails.com Developer guide · Guides
Products
Identity verificationBusiness verification (KYB)Bank, income & creditFace match & OCRVideo KYC, eSign & flowsCompliance & riskPayouts & messagingAll 52 APIs
Use cases
Customer onboarding (KYC)Merchant & seller onboarding (KYB)Vendor & supplier verificationEmployee background checksGig and field worker onboardingLoan underwritingPayout and refund validationDuplicate and synthetic identity detection
Industries
Fintech & Digital LendingBanks & NBFCsInsuranceBroking, Mutual Funds & WealthCrypto & VDA PlatformsReal-money GamingE-commerce & MarketplacesStaffing, Gig & HRTelecomMobility & LogisticsReal Estate & RentalsB2B & Procurement
Resources
GuidesGlossaryFAQSecurity & data
DevelopersPricingAbout
Theme
Get API keysCall +91 93154 41053

Aadhaar eSign API

Takes a PDF and a list of signers, sends each a signing link, collects Aadhaar OTP eSignatures and returns the signed PDF and audit trail.

REC 02:14 Geo-tag in IndiaPAN on cameraLivenessAgent sign-off CustomerRAVI KUMAR SessionVKYC-2291
Source
Licensed eSign Service Provider (ESP) using Aadhaar OTP authentication
Turnaround
Depends on the signer; usually minutes. Status by webhook
Endpoint
POST /v1/esign/request
Who can use it
Businesses with signer consent. Signers need an Aadhaar-linked mobile number.

Overview

Aadhaar eSign lets someone sign a document by entering an OTP sent to their Aadhaar-linked mobile. The signature is issued through a licensed eSign Service Provider and is valid under the Information Technology Act. Send us a PDF and the signers, and we send each signer a link, collect the signatures and return the signed PDF with an audit trail.

Good to know

Not every document can be e-signed under Indian law. eSign proves who signed and when, not that they read or understood the document.

What you get

  • Several signers, set orderBorrower, co-borrower and guarantor can sign in the order you choose.
  • Signature where you want itSet the page and position for each signer, so the signed PDF looks like your paper version.
  • Audit trail includedEach signature carries the signer's name, time stamp and certificate details.
  • Webhooks for statusKnow when each person signs, and chase the ones who haven't.

Request

POST https://api.ampletrails.com/v1/esign/request

FieldTypeStatusDescription
documentstringRequiredPDF to sign, as base64 or HTTPS URL
signersarrayRequiredSigners with name, mobile/email and signature position
reasonstringOptionalReason shown on the signature
callback_urlstringOptionalWebhook called when signing completes

Response

Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.

FieldMeaningExample
request_ideSign request identifieres_92c1b7
signing_linksPer-signer links to sign[…]
statusRequest status (pending, partially_signed, completed, expired)pending
signed_document_urlSigned PDF once completenull
audit_trailSigner name, timestamp and certificate details for each signature[…]

Example

curl -X POST https://api.ampletrails.com/v1/esign/request \
  -H "Authorization: Bearer $AMPLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"document": "https://example.com/agreement.pdf", "signers": "[{\"name\":\"Ravi Kumar\",\"mobile\":\"9876543210\",\"page\":3}]", "reason": "Loan agreement", "callback_url": "https://example.com/webhooks/esign"}'
Response · 200 OK
{
  "status": "success",
  "request_id": "req_7f3a9c21e4",
  "data": {
    "request_id": "es_92c1b7",
    "signing_links": "[…]",
    "status": "pending",
    "signed_document_url": null,
    "audit_trail": "[…]"
  }
}

Example data. The exact field list for your account comes with your sandbox documentation.

Use cases

Loan agreements

Sign sanction letters and loan agreements as part of the digital journey.

Account opening forms

Get account opening forms signed digitally.

HR and vendor contracts

Offer letters, NDAs and vendor agreements signed without printing anything.

Questions about this API

Is Aadhaar eSign legally valid?

Yes. eSign through a licensed ESP is recognised as an electronic signature under the IT Act, 2000. Some documents, such as wills and property sale deeds, are excluded from electronic signing by law.

What does the signer need?

Their Aadhaar number or VID and access to the mobile number linked with Aadhaar to receive the OTP.

What if the signer's mobile isn't linked to Aadhaar?

They can't complete OTP eSign. Offer a fallback such as DSC signing or a physical signature.

How long does a signing link stay valid?

You set the expiry. Expired requests return status expired and you can resend.

Try the Aadhaar eSign API

Sandbox keys, the full field reference and a Postman collection, usually within a working day.