This API is used to initiate a session with Digilocker. This API generates a code on UI which will be used in the next DigiLocker flow APIs.
The CLIENT_SECRET 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.
The consent parameter indicates whether the user has given consent for the session initiation in the Digilocker service.
The purpose parameter specifies the reason for initiating the session in the Digilocker service.
URL where the user needs to be redirected once the consent is approved.
List of ID Documents. Allowed values are 'aadhaar', 'pan', 'dl'. Only the specified document types will be displayed on the consent screen page for the user. Default value: ['aadhaar','pan','dl']
aadhaar, pan, dl Successful Response