DigiLocker session status webhook
Receive a webhook when a DigiLocker session succeeds or fails, with the documents the user consented to share, instead of polling the session status.
WEBHOOK
Webhooks fire when a DigiLocker session moves from
created to succeeded or failed, so you don’t need to poll the session status.
The webhook’s data contains the session, with the same schema as data in the session status response. After succeeded, read data.documents_consented and fetch each document. A session failed when the user denies consent or the authorization can’t be completed.
Configure the webhook before initiating sessions. See the webhooks guide to set your URL and validate x-sandbox-signature.Body
application/json
DigiLocker session status notification.
Session details use the same schema as data in the DigiLocker session status response.
Response
200
Return a 2xx status to acknowledge receipt of the notification.