DigilockerVerify Account

DigiLocker Verify Account - Check for an Existing Account

Check whether an Aadhaar or mobile number already has a DigiLocker account, so you can send new users straight to DigiLocker sign-up.

curl -X POST "https://production.deepvue.tech/v1/kyc/digilocker/verify-account" \
  -H "Content-Type: application/json" \
  -H "X-Deepvue-Origin: acme-web" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "client-id: YOUR_API_KEY" \
  -d '{
  "consent": "Y",
  "purpose": "Personal loan application",
  "mobile_number": "9876543210"
}'
{
  "code": 200,
  "timestamp": 1795412345678,
  "transaction_id": "0f8b1c2d3e4f45a6b7c8d9e0f1a2b3c4",
  "sub_code": "SUCCESS",
  "message": "Digilocker account verified successfully.",
  "data": {
    "registered": true,
    "digilocker_id": "123e4567-e89b-12d3-a456-426655440000"
  }
}
POST
/v1/kyc/digilocker/verify-account
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: x-api-key)
x-api-keystring
Required

The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.

The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
API Key (header: client-id)
client-idstring
Required

The CLIENT_ID provided to you. This header parameter is required for authentication purposes.

The CLIENT_ID provided to you. This header parameter is required for authentication purposes.
Content-Typestring
Required

The media type of the request body

Options: application/json
header
X-Deepvue-Originstring

Identifies the product, service, or platform you are calling the API from. The value appears in the Caller column of Transaction logs and in dashboard analytics. - Use lowercase letters, digits, and hyphens only - Start with a letter or digit - Maximum 32 characters A value that does not match ^[a-z0-9][a-z0-9-]{0,31}$ is rejected with INVALID_ORIGIN_METADATA.

Min length: 1 • Max length: 32 • Pattern: ^[a-z0-9][a-z0-9-]{0,31}$
purposestring
Required

Why you are checking, for example Personal loan application.

aadhaar_numberstring

The user's 12-digit Aadhaar number. Send either aadhaar_number or mobile_number, not both.

Pattern: ^[0-9]{12}$
mobile_numberstring

The user's 10-digit mobile number, without +91 or a leading 0. Send either aadhaar_number or mobile_number, not both.

Pattern: ^[0-9]{10}$
Request Preview
Response

Response will appear here after sending the request

Authentication

header
x-api-keystring
Required

API Key for authentication. The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.

header
client-idstring
Required

API Key for authentication. The CLIENT_ID provided to you. This header parameter is required for authentication purposes.

Headers

X-Deepvue-Originstring

Identifies the product, service, or platform you are calling the API from. The value appears in the Caller column of Transaction logs and in dashboard analytics.

  • Use lowercase letters, digits, and hyphens only
  • Start with a letter or digit
  • Maximum 32 characters

A value that does not match ^[a-z0-9][a-z0-9-]{0,31}$ is rejected with INVALID_ORIGIN_METADATA.

Example:
acme-web

Body

application/json
purposestring
Required

Why you are checking, for example Personal loan application.

aadhaar_numberstring

The user's 12-digit Aadhaar number. Send either aadhaar_number or mobile_number, not both.

mobile_numberstring

The user's 10-digit mobile number, without +91 or a leading 0. Send either aadhaar_number or mobile_number, not both.

Responses

codeinteger
timestampinteger
transaction_idstring
sub_codestring
messagestring
dataobject

Deepvue sends the Aadhaar or mobile number to DigiLocker to run this check and does not store it. The response only tells you whether a DigiLocker account exists and, if it does, its DigiLocker ID. It never returns the user's name, documents, or other personal details.

Collect the user's consent before you call this API, and send consent as Y only when you have it. Mask Aadhaar numbers wherever you store or log them on your side. See Consent & Compliance.