Skip to main content
POST
/
v1
/
in
/
digilocker
/
init
Initiate
curl --request POST \
  --url https://base_url/v1/in/digilocker/init \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Test Kumar",
  "email": "ab*******@gmail.com",
  "mobile": "987*****654",
  "redirectUrl": "https://base_url",
  "state": "Uttar Pradesh"
}
'
{
  "code": "0x0200",
  "message": "Record found successful.",
  "status": "SUCCESS",
  "data": {
    "clientId": "digilocker_LcVknlhLIVuzt",
    "token": ".eJyrVkrOyUzNK4nPTFGyUkrJTM_MyU_OTi2K90kOy87LyfCpSvU-sBKotKMpPKU0uyczPAwqXVBakouhXqgUA1GUghg.Zn0XGg.3PFECg5-_gpi5uSKtMFIYJzZFIo",
    "url": "https://digilocker-sdk.notbot.in/?gateway=productioUzNK4nPTFGyUkrJTM_MyU_OTi2K90kOy87LyfCpSvPPdU7N8QwrrSpR0lFKTyxJLU-sBKotKMpPKU0uyczPAwqXVBakouhXqgUA1GUghg.Zn0XGg.3PFECg5-_gpi5uSKtMFIYJzZFIo&auth_type=web",
    "expirySeconds": 600
  }
}

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.