by Profiden

Digilocker

Identity & KYC

Step 1 of DigiLocker KYC - generates a consent link for the customer to sign in to DigiLocker and share documents. Use the returned transaction_id with the Digilocker Fetch Details API.

Endpoint

POST https://app.emver.io/api/sandbox/v1/digilocker-kyc
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: application/json

Request parameters

FieldTypeDescription
digilocker_mobile required string Mobile Number Customer mobile number (10 digits)
digilocker_first_name optional string First Name
digilocker_last_name optional string Last Name
digilocker_email optional string Email
digilocker_redirect_url optional string Redirect URL Where the customer returns after consent

Example request

cURL
curl -X POST https://app.emver.io/api/sandbox/v1/digilocker-kyc \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "digilocker_mobile": "9999999999",
    "digilocker_first_name": "string",
    "digilocker_last_name": "string",
    "digilocker_email": "[email protected]",
    "digilocker_redirect_url": "string"
}'

Replace YOUR_API_KEY and the placeholder values. Use the switch above to see production URLs.

Response

Structure · 200

{
  "status": INTEGER,
  "message": STRING
}

Example · 200

{
  "status": 200,
  "message": "string"
}

Error · 4xx / 5xx

{
  "status": INTEGER,
  "message": STRING
}

See Errors & status codes for what each status means and which calls are billed.

About this API

Digilocker

Step 1 of DigiLocker KYC - generates a consent link for the customer to sign in to DigiLocker and share documents. Use the returned transaction_id with the Digilocker Fetch Details API.

Note: Share consent_url with the customer. After they complete DigiLocker consent, call Digilocker Fetch Details with transaction_id.

Endpoint

POST /api/v1/digilocker-kyc
Content-Type: application/json

Request parameters

FieldRequiredDescription
digilocker_mobileYesMobile Number - Customer mobile number (10 digits). Example: 9876543210
digilocker_first_nameNoFirst Name. Example: Rahul
digilocker_last_nameNoLast Name. Example: Sharma
digilocker_emailNoEmail. Example: [email protected]
digilocker_redirect_urlNoRedirect URL - Where the customer returns after consent. Example: https://yourapp.com/done

Sample request

{
  "digilocker_mobile": "9876543210",
  "digilocker_first_name": "Rahul",
  "digilocker_last_name": "Sharma",
  "digilocker_email": "[email protected]",
  "digilocker_redirect_url": "https://yourapp.com/done"
}

Sample success response

{
  "status": 200,
  "message": "Consent link generated",
  "data": {
    "consent_url": "...",
    "transaction_id": "...",
    "link_validity": "..."
  }
}

Sample error response

{
  "status": 404,
  "message": "No record found for the given input"
}

Response status codes

The status field in the response body indicates the verification outcome.

statusMeaning
200Verification successful
422Invalid or missing input parameters
500Source unavailable - retry later