DigiLocker API | KYC & Document Verification | Deepvue
Now live: Deepvue MCP — Agentic Compliance for IndiaDeepvue MCP is now live Set it up →
Authorized Integration

DigiLocker API for Consent-Based KYC & Document Verification in India

Retrieve verified, digitally signed documents through Deepvue’s DigiLocker API integration to support KYC, onboarding, education verification, and document retrieval workflows.

Built for consent-driven document access and verification workflows

Trusted by platforms building KYC, onboarding and verification workflows

Organizations across industries use Deepvue APIs to automate document retrieval and verification processes.

DollarPe
iMocha
Lark Finserv
NAMCO Bank
Nest
SafeTree
SwitchMyLoan
Times Internet
Yenmo
DollarPe
iMocha
Lark Finserv
NAMCO Bank
Nest
SafeTree
SwitchMyLoan
Times Internet
Yenmo
DollarPe
iMocha
Lark Finserv
NAMCO Bank
Nest
SafeTree
SwitchMyLoan
Times Internet
Yenmo
KYC and user onboarding identity document retrieval education and credential verification HR and background verification platforms enabling consent-based document access at scale KYC and user onboarding identity document retrieval education and credential verification HR and background verification platforms enabling consent-based document access at scale KYC and user onboarding identity document retrieval education and credential verification HR and background verification platforms enabling consent-based document access at scale

What is a DigiLocker KYC & document fetch API?

A DigiLocker KYC & Document Fetch API lets platforms retrieve verified, digitally signed user documents from DigiLocker — the digital document wallet built under the Government of India's Digital India programme by the Ministry of Electronics and Information Technology (MeitY) — through a consent-driven flow. DigiLocker is a flagship initiative of Digital India that gives every citizen a secure digital locker, and any user with a DigiLocker account can share those verified records on request.

This API is commonly referred to as
DigiLocker APIDigiLocker KYC APIDigiLocker Verification APIDigiLocker Integration API
Organizations use this API to
fetch verified identity documents
retrieve digitally signed credentials
automate KYC workflows
simplify document collection and verification

The Deepvue DigiLocker API helps automate retrieval of government-issued documents straight from the issuer, reducing manual upload and verification effort.

Authorized DigiLocker integration

Deepvue is an authorized DigiLocker entity with partner integration to the DigiLocker APIs published on API Setu, the Government of India's open API platform run by MeitY. This supports consent-based access to verified, government-issued digital documents.

Authorized
DigiLocker Entity
Verified
Identity documents Identity
Aadhaar XML
XMLJSON
PAN Card
PDF
Driving Licence
PDF
Education documents Education
10th Marksheet
PDF
12th Marksheet
PDF
Degree Certificates
PDF
Migration Certificates
PDF

These documents are retrieved through a fully end-user consented flow from the government departments and agencies that issue them, and can be used to support verification and onboarding workflows.

Integrate once. Access all verified documents.
Join platforms already using Deepvue’s authorized DigiLocker integration.

Why DigiLocker-based document access matters

Manual document collection creates friction. DigiLocker-based retrieval eliminates it, letting you verify digital documents and complete KYC verification in one seamless, consent-driven step.

Collecting documents manually often leads to
slower onboarding
incomplete submissions
verification delays
inconsistent document quality
DigiLocker-based retrieval enables
faster document access
verified and digitally signed records
better user experience
reduced operational effort
Particularly useful for: KYCAdmissionsHR VerificationCredential Validation

What this API enables

From one consent, the API retrieves, verifies, and formats the documents your flow needs.

Fetch what your flow needs

Request Aadhaar, PAN, licences, or marksheets in one call and skip chasing users for uploads.

Trust the source, not the upload

Records come straight from the issuer, so you can drop manual authenticity checks and forgery reviews.
What DigiLocker KYC is

Automate KYC and onboarding

Fetch documents inside your signup flow instead of asking users to upload and wait.
Verify the PAN you fetch

Collect documents in one step

Identity and education records come back together from one consent, not four separate uploads.

Integrate once for every document

One request and response shape covers each document category and source, so you wire it up a single time.
Mask Aadhaar before you store it
See how easy it is to integrate.
From consent to verified documents in under two seconds.

How the API works

A five-step consent-driven flow from user redirect to structured output.

01

Redirect to DigiLocker

The user is redirected to the DigiLocker consent journey.
02

Authenticate and consent

The user authenticates with an OTP and grants consent for the requestor to fetch the selected documents.
03

Return to platform

The user is returned to the requesting platform.
04

Fetch documents

Deepvue fetches the permitted documents through authorized DigiLocker integration.
05

Structured output

Structured document outputs are returned to your system.

Consent-driven document access

Every document retrieval is backed by explicit end-user approval.

Built on consent. Trusted by compliance teams.
Start integrating Deepvue’s authorized DigiLocker API into your workflows.

Sample API flow

See how a single API call moves from consent to verified document delivery.

API Request
POST /v1/digilocker/documents/fetch
{
  "consent_token": "<token_from_consent_flow>",
  "document_types": ["aadhaar_xml", "pan_card"]
}
Input Parameters
consent_token
string, issued after DigiLocker consent
document_types
array, requested document identifiers
API Response (Simplified)
{
  "documents": [
    {
      "type": "aadhaar_xml",
      "format": "xml",
      "digilocker_uri": "digilocker://document/abc123"
    },
    {
      "type": "pan_card",
      "format": "pdf",
      "digilocker_uri": "digilocker://document/xyz789"
    }
  ],
  "status": "success"
}

Output formats supported

Depending on document type and source, outputs may be available as:

JSON

JSON metadata

Structured metadata fields returned as a parsed JSON object
PDF

PDF documents

Digitally signed PDF files issued directly from DigiLocker
XML

XML documents

Raw XML data for documents such as Aadhaar with signature
URI

DigiLocker-issued document URIs

Unique DigiLocker URIs pointing to verified document records
Response structures may vary based on document type and availability.
Multiple formats. One simple integration.
Access JSON, PDF, XML, and more through a single authorized API.

Unified API for multiple document categories

Deepvue provides a single integration layer to retrieve a broad range of DigiLocker-supported documents.

This helps organizations avoid
multiple fragmented integrations
separate document handling systems
inconsistent retrieval workflows

Integration features and key capabilities

Everything you need to build, ship, and scale DigiLocker-powered workflows.

Integration Features

Consent-based workflow

Document retrieval only after user approval.

Unified API layer

Access multiple document categories through one integration.

Structured outputs

Receive documents and metadata in standardized formats.

Scalable infrastructure

Supports high-volume retrieval workflows.

Developer-friendly documentation

Designed for faster go-live and simpler implementation.
Key Features

Authorized DigiLocker integration

Access documents through an approved DigiLocker setup.

Verified and digitally signed documents

Retrieve trusted digital records.

Identity and education coverage

Support both KYC and credential workflows.

Consent-driven access

Built around explicit end-user authorization.

Unified document retrieval API

Simplify access across multiple document types.

Who uses this API

Organizations across industries rely on Deepvue for document retrieval and verification.

Fintech and KYC platforms

Retrieve identity documents directly during customer onboarding.

EdTech and credential platforms

Fetch marksheets and degree certificates from the issuing source.

Enterprises and HR teams

Verify employee and candidate documents during background checks.

Background verification platforms

Verify candidate documents straight from the issuing source.

Digital onboarding systems

Replace manual uploads with a consented fetch and lift conversion.

Compliance and data governance

Deepvue provides infrastructure to enable consent-based DigiLocker document retrieval workflows.

Documents are accessed through
authorized DigiLocker integration
end-user consent and authentication
compliant system workflows
These APIs are intended for use in
KYC and onboarding
identity verification
credential and education verification
document-driven compliance workflows

Deepvue does not independently initiate document access and only facilitates retrieval after valid end-user consent.

Applicable regulations
Digital Personal Data Protection Act (DPDP), 2023
Data protection & privacy
Information Technology Act, 2000
Electronic governance & cybersecurity

All API interactions are protected using encryption, access controls, and audit logging.

Flexible API pricing

Deepvue APIs are designed to scale with your document retrieval requirements.

Pricing typically depends on
number of document retrievalsdocument categories enabledAPI usage tiersintegration requirements

For organizations evaluating DigiLocker API pricing or DigiLocker integration cost, our team provides customized pricing.

Frequently asked questions

Common questions about DigiLocker API integration, documents, and pricing.

What is a DigiLocker API?

A DigiLocker API enables platforms to retrieve verified digital documents through an end-user consent flow.

Can this API be used for KYC?

Yes. It can be used to retrieve identity documents such as Aadhaar XML, PAN Card, and Driving Licence for consent-based KYC workflows.

Can I fetch education documents through this API?

Yes. The API supports education documents such as 10th and 12th marksheets, degree certificates, and migration certificates.

Are the documents digitally signed?

Yes. Documents retrieved through DigiLocker are verified digital records, and document formats may include digitally signed outputs where applicable.

What is DigiLocker API pricing?

Pricing depends on document categories, retrieval volume, and integration requirements.

How do I use the DigiLocker API?

Redirect the user to the DigiLocker consent journey, and once they authenticate and approve, exchange the returned consent token for the permitted documents through Deepvue's authorized integration. The integration process is a single REST call: pass the consent token and a document_types parameter carrying the identifier for each record you need, and the API returns structured, digitally signed records. This lets service providers integrate the DigiLocker API once and fetch documents from DigiLocker across every category. Full API specification and sample requests are in the developer documentation.

What is the API Setu portal?

API Setu is the Government of India's open API platform, run by the Ministry of Electronics and Information Technology (MeitY), where the DigiLocker APIs are published for authorized partners. Deepvue integrates with these DigiLocker APIs as an authorized entity, so you access them through one Deepvue integration instead of onboarding to API Setu directly.

How do I get a DigiLocker document URI?

Each document the API returns includes a DigiLocker-issued URI that uniquely identifies the verified record at the issuer, alongside the document data in JSON, PDF, or XML. You can store the URI as a reference to the source document for audit and re-verification.

Is DigiLocker an open-source platform?

DigiLocker is not open source. It is a Digital India initiative operated by MeitY, and access is provided through the open APIs published on API Setu rather than through open-source code. Deepvue connects to those APIs as an authorized DigiLocker entity.

Which documents can I fetch through the DigiLocker API?

You can fetch documents like Aadhaar and PAN, plus a driving licence or driving license, vehicle registration certificates, and education records such as marksheets and degree certificates. Aadhaar data is sourced from UIDAI as signed e-documents, and access to government-issued documents is always consent-based.

What do I need to integrate the DigiLocker API?

You need your Deepvue API credentials and the consent flow. The user signs in to DigiLocker with their Aadhaar-linked mobile number and an OTP, which produces a DigiLocker request ID; your backend exchanges that request ID through Deepvue for the verified documents. You do not have to onboard to API Setu separately or run your own document management system — Deepvue handles the DigiLocker integration and delivers a real-time response.

Is Deepvue a DigiLocker API provider?

Deepvue provides authorized DigiLocker integration APIs that enable organizations to retrieve verified digital documents through consent-based workflows.

Start retrieving verified documents
through DigiLocker-powered workflows.

Authorized integration. Consent-driven access. Production-ready API.

esc