Initiate Session
The Initiate Session API returns a DigiLocker link that the user is redirected to, where they can provide consent for the requested documents.
Run in Postman
Headers
JWT access token. For token-generation steps, refer to the Quickstart Guide.
API key used to identify and authenticate the client.
Specifies the API version for the request.
Media type of the request body.
application/json Body
Entity type of the request. Always in.co.sandbox.kyc.digilocker.session.request.
in.co.sandbox.kyc.digilocker.session.request Which DigiLocker screen the user starts on. signin opens the sign-in screen, for users who already have a DigiLocker account. signup opens account creation.
signin, signup HTTPS URL where the user will be redirected after granting or denying DigiLocker consent. Must be a valid, publicly accessible URL.
^https://List of DigiLocker document types for which user consent is being requested.
1aadhaar, pan, driving_license 1Purpose of the request, shown to the user on DigiLocker's consent screen. Letters, digits, spaces and underscores only, as DigiLocker requires; anything else returns 400. Defaults to Know Your Customer.
^[A-Za-z0-9_ ]+$Name of the business requesting the documents, shown to the user on DigiLocker's consent screen. Letters, digits, spaces and underscores only, as DigiLocker requires; anything else returns 400. Defaults to your workspace's business name from the Sandbox console, with other characters replaced by spaces.
^[A-Za-z0-9_ ]+$Controls DigiLocker's sign-in and sign-up screens. Every option is optional, and an option that does not apply to the chosen flow is ignored, not rejected.
When the consent expires, as Unix epoch milliseconds. Must be at least one hour from now, otherwise 400. Defaults to 61 minutes from now. DigiLocker rejects a link opened with less than an hour of consent left, so allow time for the user to open it.