post
https://dev.idto.ai/verify/digilocker/initiate_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 Status | Code | Reason | Message | Merchant Action |
|---|---|---|---|---|
| 200 | 1000 | AUTH_URL_GENERATED | Authorization URL generated. | Redirect user to URL. |
| 400 | 3001 | INVALID_DOC_CODE | One or more documents_for_consent invalid. | Pass correct document codes from master list. |
| 400 | 3002 | MISSING_REDIRECT_URL | redirect_url missing. | Pass valid redirect URL. |
