GTS: Digilocker UIStream

API Endpoints


Session Expiry and Link Validity

sessionExpiresAt is set to 15 minutes after link generation. GTS may report SESSION_EXPIRED after this time.

The UIStream link’s authentication token is valid for 15 minutes from generation. Users must open the link and complete the flow within this period.

Response Key Description

FieldDescription
data.stageCurrent workflow status.
data.createdOnSession creation time.
data.sessionExpiresAtGTS expiry time: 5 minutes after link generation. The link token remains valid for 15 minutes.
data.isTerminalTerminal flag for the reported stage. A session reported as expired may still progress while the link token is valid.
data.documentsDocument-fetch results.
data.callbackCallback count, delivery flags, and available timestamps.
data.stageHistoryRecorded workflow stages and timestamps.

UI Stream Journey Stages

The following table lists the different stages of the DigiLocker UI Stream journey and their corresponding descriptions.

StageDescription
UISTREAM_LINK_GENERATEDThis event is triggered when the UIstream link is generated successfully.
DOCUMENT_AADHAAR_FETCHEDThis event is triggered when aadhaar data is fetched successfully from Digilcoker.
AADHAAR_DIGILOCKER_INITIATEDThis event is triggered when the user is sent on the aadhaar journey on Digilocker UI.
DIGILOCKER_SESSION_COMPLETEDThis event is triggered when after the successful consent is submitted by the user and the user is redirected to UIstreams loader screen.
EAADHAAR_PDF_GENERATION_SUCCESSThis event is triggered when Aadhaar Pdf is successfully generated from XML.
MOBILE_DIGILOCKER_INITIATEDThis event is triggered when the user is sent on the Mobile Journey on Digilocker UI.
REDIRECTED_TO_DOCUMENT_FETCH_SCREENThis event is triggered when the documents are getting fetched for the user in the UIstream journey.
AADHAAR_NOT_SEEDEDThis event is triggered when the user does not have Aadhaar seeded in Digilocker account.
REINITIATED_AFTER_WRONG_CONSENTThis event is triggered when a new session is initiated for the user after he/she does not give the required consent for documents.
USER_REDIRECTEDThis event is triggered when the user has reached the terminal stage of UIstream journey and is redirected back to the URL given in the request body.
FULL_CALLBACK_SENTThis event is triggered when the full callback is triggered to the merchant on the given callback URL in the request payload.
PARTIAL_CALLBACK_SENTThis event is triggered when the partial callback is triggered to the merchant on the given callback URL in the request payload.
WRONG_CONSENTThis event is triggered when the user does not give the required consent for documents.
DOCUMENT_PAN_FETCHEDThis event is triggered when the PAN is successfully fetched for the user from Digilocker.
REINITIATED_AFTER_EMPTY_ACCOUNT_FOUNDThis event is triggered when an Aadhaar session is initiated for the user if the Digilocker account of the user is empty.
ALL_DOCUMENTS_AND_CONSENTS_FOUNDThis event is triggered when all the required consents and documents are fetched from Digilocker.
PAN_PULL_ATTEMPTEDThis event is triggered when the PAN is getting fetched for the user from Digilocker
VERIFY_ACCOUNT_RETRY_SUCCESSThis event is triggered as an intermediary step before redirecting the user to Digilocker UI.
VERIFY_ACCOUNT_RETRY_SHOWNThis event is triggered as an intermediary step before redirecting the user to Digilocker UI failed.
ACCESS_DENIEDThis event is triggered when the user does not provide the consent to fetch the documents from Digilocker.
Path Params
string
required
Defaults to SGDHWR2538G373GFDH

Alpha-numeric unique ID associated with each transaction in the response payload

Headers
string
required

The confidential credential provided by Decentro that is associated with the client_id

string
required

The confidential credential provided by Decentro that is associated with the client_id

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json