Skip to main content
GET
/
v2
/
digilocker
/
init
Initiate
curl --request GET \
  --url https://base_url/v2/digilocker/init \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "redirectUrl": "https://base_url/return_path"
}
'
{
  "code": "0x0200",
  "message": "Digilocker URL generate successfully",
  "status": "SUCCESS",
  "data": {
    "orderRefId": "DIG25467488ADD",
    "digilockerId": "digilocker_huKnqLvl",
    "token": ".eJyrVkrOyUzNK4nPTFGyUkrJTM_yU_OTi2Kzyj1zvMOLywNishLLShN8ij0KctR0lFKTyxJLU-sBKotKMpPKU0uyczPAwqXVBakouhXqgUA2tEgnw.aIDUdg.pwSFOVlCBxDdpCLHE9kWJnjI8G8",
    "url": "https://digilocker-sdk.notbot.in/?gateway=production&type=digilocker&token=.eJyrVkrOyUzN.aIDUdg.pwSFOVlCBxDdpCLHE9kWJnjI8G8&auth_type=web",
    "expirySeconds": 1800
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

The body is of type object.

Response

OK

The response is of type object.