To unmask large volumes of data, an asynchronous unmasking method can be used.
Using this method permits you to submit an unmask request, and in return, you receive a tracking ID. The tracking ID is utilized to check the status of the corresponding request.
Code Snippet
# data to be unmasked is passed as a list.
payload = [
"n3dVs6D0Ni",
"<PER>n3dVs6D0Ni</PER>",
"<PER>n3dVs6D0Ni</PER> lives in the <ADDRESS>8SNwyGwcY2.YcLTWWIXHF.iLgmVciGq1</ADDRESS>"]
tracking_id = obj.async_unmask(payload)
# Print the tracking_id
print(tracking_id)
Result:
{
"data":[
{
"tracking_id":"b6b7ef0e-86f6-4490-b0f8-4962a43656f929042024083721",
"status":"PENDING"
}
],
"success":true,
"error":{
"message":""
}
}
Note: Wait for few minutes to change the status of tracking id from PENDING to SUCCESS.