Detokenize data
Detokenization involves using tokens to fetch sensitive data stored in a vault. Detokenization lets authorized users and processes access the original information whenever necessary. You can call the Detokenize API or use an SDK to detokenize your data and ensure data accessibility while abiding by security protocols.
Prerequisites
-
A vault for which you have the Vault Owner role.
-
Skyflow account, vault, and workspace details:
- In Studio, click vault menu icon > View vault details.
- Note your Account ID, Vault ID, and Vault URL values.
-
A bearer token to authenticate API calls. For a short-lived token, use the following process. To generate tokens from service accounts, see Authenticate.
-
In Studio, click your account icon and choose Generate API Bearer Token.
-
Click Generate Token.
-
-
Set environment variables for your account and vault details:
Detokenize your data
When you need to view sensitive, tokenized data, call the Detokenize API to retrieve the corresponding values.
The response returns the detokenized values.
Handle errors in batch operations
The continueOnError setting lets you manage the behavior of detokenization calls in the event of an error. When continueOnError is true, detokenization continues for all specified tokens even if the vault fails to find a value for a particular token. If false and any token in the request encounters an error, the request stops and returns an error message.
If the request is successful, the error field returns null. If it’s unsuccessful, valueType is NONE, and error displays a specific error message.
When continueOnError is false and token values are missing, the response returns an error message specifying the missing tokens.
Next steps
Learn more about tokenization, review tokenization and compliance, or explore data governance.