Identities
Detokenize identity
Detokenize multiple identity fields with the Java SDK.
POST
/identities/{identity_id}/detokenizeUse blnk.identity().detokenize for this operation.
Call the method
String identityId = "idt_073f7ffe-9dfd-42ce-aa50-d1dca1788adc";
ApiResponse<JsonNode> response = blnk.identity().detokenize(
identityId,
DetokenizeIdentityData.create().fields(
"EmailAddress"
)
);
| Field | Type | Description |
|---|---|---|
id | String | Identity ID. |
fields | List<String> | PascalCase field names to detokenize. Pass [] for all tokenized fields. |
Use the plaintext values
Read response.data().get("fields") for the original values. Handle these values securely and avoid logging them.
Response
{
"fields": {
"firstName": "Alice",
"emailAddress": "[email protected]"
}
}
| Field | Type | Description |
|---|---|---|
fields | Map<String, String> | Original values for the fields you requested. |