Fintech APIs & Platform for KYC, Verification & Transactions in India | Eko Platform Services
Eko Platform Services Logo
← Back to Home

DigiLocker API for Consent-Based KYC & Document Verification

Fetch and verify user-consented digital documents such as Aadhaar, PAN, driving licence, and other DigiLocker-issued records through secure, paperless API workflows for onboarding, lending, and compliance.

Get Sandbox Access View Documentation

Starts at ₹1.44 per request · excl. GSTView Pricing

Overview

The DigiLocker API enables businesses to fetch and verify user documents digitally with explicit consent. It eliminates manual document collection, reduces fraud, and accelerates onboarding through trusted digital records.

What Can You Verify With DigiLocker Integration APIs?

Key details returned across all DigiLocker API endpoints, ready to power your KYC and onboarding workflows.

DigiLocker URL

DigiLocker redirect URL. Present this URL to the customer to begin document authorisation.

Document Type

Type of document retrieved (e.g. AADHAAR).

Name

Full name as per the verified document.

Date of Birth

Date of birth from the verified document.

Gender

Gender as per document: M, F, or T.

Masked Aadhaar

Aadhaar number with first 8 digits masked.

Address

Residential address from the verified Aadhaar.

House

House or flat number.

Street

Street or locality name.

Village Or City

Village or city.

District

District.

State

State.

Pincode

6-digit postal code.

Photo

Base64-encoded photograph from the Aadhaar document.

Verification Status

Overall DigiLocker verification status: SUCCESS or PENDING.

Simplified API Preview

DigiLocker API Flow – Sample Request and Response

Send simple inputs. Get rich, verified data in seconds.

Generate a DigiLocker redirect URL to initiate consent-based Aadhaar document retrieval.

REQUEST
POST /tools/kyc/digilocker
Document Requested["AADHAAR"]
Redirection URLhttps://yourapp.com/kyc/callback
RESPONSE
200 OK
Reference Id7483920
DigiLocker URLhttps://digilocker.gov.in/auth?session_id=abc123xyz

Key Features

Everything you need to integrate and scale

Consent-Based Document Access

Fetch documents only after explicit user consent, ensuring transparency and trust.

Digital Document Retrieval

Access verified digital documents without physical copies.

Automation Ready

Integrates seamlessly into digital onboarding and compliance systems.

Scalable Architecture

Designed to handle high-volume document access reliably.

Who Should Use This API?

Banks and NBFCs
Fintech and lending platforms
Enterprises with digital onboarding
Platforms requiring document verification

Primary Use Cases

Digital KYC and onboarding
Loan and credit processing
Customer identity verification
Compliance and due diligence workflows

How to Integrate

Get started in minutes with our simple integration process

  1. 1

    Sign Up

    Sign up in minutes with your mobile number (OTP verify).

  2. 2

    Verify Identity

    Provide your PAN to verify your identity.

  3. 3

    Test APIs Live

    Load funds into your wallet and test the verification APIs live — evaluate before you integrate.

  4. 4

    Integrate with AI

    Ready to build? Visit our AI hub for free plugins & tools to integrate faster.

  5. 5

    Go Live

    Start accessing digital documents in production.

Frequently Asked Questions

Does the DigiLocker API use OTP or redirect-based consent?+

The DigiLocker API uses a redirect-based consent mechanism. The user may authenticate through DigiLocker using the supported login or OTP process and then approve document sharing. Your application receives the verification result through the configured callback or API response.

Is DigiLocker access consent-based?+

Yes, documents are fetched only after explicit user consent, ensuring full transparency.

What documents can be accessed?+

You can access government-issued digital documents like Aadhaar, PAN, driving license, and more through DigiLocker.

Does it eliminate physical document collection?+

Yes, the API enables fully paperless document verification, eliminating manual collection.

How do I get started?+

Sign up at ekostore.app/eps, verify your identity with your PAN, load your wallet to test the verification APIs live, then integrate and go live.

What is EPS?+

EPS (Eko Platform Services) is the technology arm of Eko, providing the developer tools, AI tools, and APIs that power modern fintech integration.

Also see:About Eko
What are the different ways to integrate with Eko EPS?+

Integrate in whichever way suits your stack: call the REST APIs directly, use our official SDKs (JavaScript and PHP) to skip request-signing boilerplate, or let an AI coding agent build the integration using our MCP server and skills. See the Developers and AI sections for each path.

How does API authentication work?+

Each request carries your static `developer_key` header plus a per-request `secret-key` header — an HMAC-SHA256 signature of the current timestamp, keyed by your access key. The access key itself is never sent over the wire. You receive UAT keys on signup and production keys after KYC.

Is there a sandbox environment for testing?+

Yes. A full sandbox environment is available immediately on signup. You can test your integration end-to-end before going live — no commitment required.

Also see:Get started
What are the sandbox and production base URLs?+

Sandbox and production share the same paths and differ only by base URL: use https://staging.eko.in/ekoapi/v3 for UAT / Sandbox, and https://api.eko.in/ekoicici/v3 for Production. A common cause of failures is calling the sandbox/staging URL with live credentials (or vice-versa) — make sure the base URL matches the keys you are using.

Do I need to whitelist my server IP?+

Production API access may require your static public (server) IP to be whitelisted. If your calls work from Postman but fail or time out from your own server, share your static public IP with us so we can whitelist it.

What response times can I expect?+

Most verification APIs return in real time with sub-second responses, and 99th-percentile latency stays under two seconds across verification endpoints. Transaction APIs (DMT, AePS, BBPS) respond within seconds.

Can the API handle high volumes?+

Yes. The API is designed to handle large-scale volumes reliably without performance degradation.

How is API usage billed?+

Usage is billed per successful API call with no minimum commitment. Volume-based pricing tiers are available — contact our team for detailed rates.

Get API Access

Sign up now and start integrating in minutes. Our team will help you go live quickly.

  • Sandbox access in minutes
  • Dedicated integration support
  • Comprehensive documentation
  • Reliable, high-volume workflows

Get DigiLocker API Access

Get started in 10 minutes