Initiate DigiLocker session

Initiates a DigiLocker session for the user. Requires user consent and redirect information. Accepts a JSON body with user_id (optional), consent (bool), consent_purpose (string), redirect_url (string), redirect_to_signup (bool, optional), documents_for_consent (array, optional) and state (string, optional).

HTTP StatusCodeReasonMessageMerchant Action
2001000AUTH_URL_GENERATEDAuthorization URL generated.Redirect user to URL.
4003001INVALID_DOC_CODEOne or more documents_for_consent invalid.Pass correct document codes from master list.
4003002MISSING_REDIRECT_URLredirect_url missing.Pass valid redirect URL.
Language
Credentials
URL
Response
Click Try It! to start a request and see the response here!