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.
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.
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.
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?
Primary Use Cases
How to Integrate
Get started in minutes with our simple integration process
- 1
Sign Up
Create an account on Connect App and get your sandbox credentials.
- 2
Submit KYC
Complete your KYC verification process by submitting the required documents.
- 3
Integrate API
Use our comprehensive documentation to integrate the APIs.
- 4
Test in Sandbox
Test your integration thoroughly in our sandbox environment.
- 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.
Can the API handle high volumes?+
Yes. The API is designed to handle large-scale volumes reliably without performance degradation.
How does API authentication work?+
Every API call is secured with one-time-use tokens generated using asymmetric cryptography. After signing up, you will receive your developer-key and secret-key for both UAT and production environments, which you can use to generate tokens for authenticating your API requests.
How are errors and failures reported?+
Every response includes a status code and a human-readable message. Failed requests return specific error codes indicating the reason, so you can handle each case programmatically.
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.
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.
How do I get started?+
Sign up on Connect App, submit the required documents, integrate the REST API using our sandbox environment, and go live.
Recommended Solution Packs
Pre-bundled API stacks that include DigiLocker API, designed for common industry workflows.
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