DigiLocker Verification API
Consent-based fetch of a person's verified documents from DigiLocker.
What it verifies
Lets a person share their verified documents from DigiLocker with consent. You start a request, send the person to the returned link to approve it, then fetch the details once they have.
Who uses it
- Lenders and NBFCs collecting verified identity documents
- Insurers and brokers completing KYC without uploads
- Employers and staffing firms verifying candidates
Start a DigiLocker request and get the link the person must approve.
https://verification.techinnoverz.com/api/v1/identity-kyc/digilocker/initiateStart a DigiLocker request and get the link the person must approve. This call is not billed.
Request body
redirectUrlstringrequiredWhere the person returns to after approving, an https address.
consentstringrequiredMust be "Y". Records that the end customer consented to this check; logged against the transaction.
referenceIdstringoptionalYour own id, echoed back in the response for reconciliation.
Example requests
curl -X POST "https://verification.techinnoverz.com/api/v1/identity-kyc/digilocker/initiate" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"redirectUrl": "https://example.com/kyc/done",
"consent": "Y",
"referenceId": "app_20915"
}'const res = await fetch("https://verification.techinnoverz.com/api/v1/identity-kyc/digilocker/initiate", {
method: "POST",
headers: {
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"redirectUrl": "https://example.com/kyc/done",
"consent": "Y",
"referenceId": "app_20915"
}),
});
const result = await res.json();import requests
res = requests.post(
"https://verification.techinnoverz.com/api/v1/identity-kyc/digilocker/initiate",
headers={"x-api-key": "YOUR_API_KEY"},
json={
"redirectUrl": "https://example.com/kyc/done",
"consent": "Y",
"referenceId": "app_20915",
},
timeout=15,
)
result = res.json()200 response — status "initiated"
{
"status": "initiated",
"data": {
"digilockerRequestId": "dlr_8c31ba91",
"authorizationUrl": "https://digilocker.example/authorize/dlr_8c31ba91"
},
"source": "provider",
"dataAsOf": "2026-11-03T09:30:00.000Z",
"referenceId": "app_20915",
"billing": {
"charged": false,
"walletBalance": "12450.00"
},
"txnId": "txn_8c31ba90",
"livemode": true
}Fields returned in data
digilockerRequestIdstringoptionalQuote this when fetching the result.
authorizationUrlstringoptionalSend the person here to approve the share.
Fetch the shared details once the person has approved.
https://verification.techinnoverz.com/api/v1/identity-kyc/digilocker/fetchFetch the shared details once the person has approved. This call is billed when it returns a successful result.
Request body
digilockerRequestIdstringrequiredThe id returned when the request was started.
consentstringrequiredMust be "Y". Records that the end customer consented to this check; logged against the transaction.
referenceIdstringoptionalYour own id, echoed back in the response for reconciliation.
Example requests
curl -X POST "https://verification.techinnoverz.com/api/v1/identity-kyc/digilocker/fetch" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"digilockerRequestId": "dlr_8c31ba91",
"consent": "Y",
"referenceId": "app_20915"
}'const res = await fetch("https://verification.techinnoverz.com/api/v1/identity-kyc/digilocker/fetch", {
method: "POST",
headers: {
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"digilockerRequestId": "dlr_8c31ba91",
"consent": "Y",
"referenceId": "app_20915"
}),
});
const result = await res.json();import requests
res = requests.post(
"https://verification.techinnoverz.com/api/v1/identity-kyc/digilocker/fetch",
headers={"x-api-key": "YOUR_API_KEY"},
json={
"digilockerRequestId": "dlr_8c31ba91",
"consent": "Y",
"referenceId": "app_20915",
},
timeout=15,
)
result = res.json()200 response — status "found"
{
"status": "found",
"data": {
"name": "Asha Sample",
"dateOfBirth": "1994-03-21",
"maskedAadhaar": "XXXXXXXX1234",
"documents": [
"PAN",
"DRIVING_LICENCE"
]
},
"source": "provider",
"dataAsOf": "2026-11-03T09:30:00.000Z",
"referenceId": "app_20915",
"billing": {
"charged": true,
"walletBalance": "12450.00"
},
"txnId": "txn_8c31ba90",
"livemode": true
}Fields returned in data
namestringoptionalName as recorded in DigiLocker.
dateOfBirthstringoptionalDate of birth, YYYY-MM-DD.
maskedAadhaarstringoptionalAadhaar number with all but the last four digits hidden.
documentsarrayoptionalDocuments the person shared.
Error codes
Errors return a non-200 HTTP status and the same envelope, so your retry logic and your reconciliation agree.
400 INVALID_INPUTA field is missing or malformed. The details list each problem. Not charged.
401 INVALID_KEYThe key is missing, revoked, or not a key we issued.
402 WALLET_EMPTYYour available balance is below the price of this call. Top up and retry. Not charged.
403 PRODUCTION_NOT_ENABLEDA live key was used before live access was enabled for your account. Use a test key, or ask us to enable live access.
403 TEST_NOT_ENABLEDA test key was used before test (UAT) access was enabled for your account. Ask us to enable it.
403 API_NOT_ENABLEDThis check is switched off for your account, or is not available for live use yet.
403 IP_NOT_ALLOWEDThe key is restricted to certain IP addresses and this call came from another.
403 ACCOUNT_SUSPENDEDThe account is suspended. Contact support.
404 NO_DATAA valid request, but no record was found. Not charged.
404 ROUTE_NOT_FOUNDThere is no endpoint at that path.
405 METHOD_NOT_ALLOWEDUse the method shown in the Allow header.
409 IDEMPOTENCY_IN_PROGRESSA call with the same Idempotency-Key is still being processed. Retry after the delay in Retry-After.
413 PAYLOAD_TOO_LARGEThe request body is too large. Not charged.
415 UNSUPPORTED_MEDIA_TYPESend the request with Content-Type: application/json.
422 IDEMPOTENCY_KEY_REUSEDThis Idempotency-Key was already used with a different request body. Use a new key for a new request.
429 RATE_LIMITEDToo many requests or too many at once. Wait for the Retry-After delay.
500 INTERNAL_ERRORSomething went wrong on our side. Not charged. Quote the txnId if you contact support.
502 SOURCE_ERRORThe data source returned an error. Not charged.
503 SOURCE_DOWNThe data source is unavailable right now. Not charged. Retry after the delay in Retry-After.
504 SOURCE_TIMEOUTThe data source did not answer in time. Not charged.
{
"status": "error",
"error": {
"code": "NO_DATA",
"message": "No record found for the given input. Not charged."
},
"billing": {
"charged": false
},
"txnId": "txn_8c31ba91",
"livemode": true
}Billing
You are charged only on successful hits. Failed, no-data and error calls are free.
Every response carries billing.charged and your remaining billing.walletBalance. Per-hit pricing is set on your rate card; book a demo to get yours.
Related checks
- Aadhaar OTP Verification API — Consent-based Aadhaar verification with OTP delivered to the registered mobile number.
- PAN Verification API — Verify PAN card details and status against Income Tax Department records.
- PAN Advanced Verification API — Verify a PAN and also get its holder type and whether it is linked to Aadhaar.
- Voter ID Verification API — Verify EPIC (Voter ID) details against Election Commission of India records.
- Driving Licence Verification API — Verify driving licence number, validity and vehicle class against Parivahan records.
- Face Match API — Compare two photos and get a match score, for example a selfie against an ID photo.
- Face Match with Liveness API — Check that a selfie is of a live person and matches the photo on their ID, in one call.
All API documentation · OpenAPI specification · Docs as plain text
