Identities
Tokenize identity
Tokenize multiple identity fields with the Java SDK.
POST
/identities/{identity_id}/tokenizeUse blnk.identity().tokenize for this operation.
Call the method
String identityId = "idt_073f7ffe-9dfd-42ce-aa50-d1dca1788adc";
ApiResponse<JsonNode> response = blnk.identity().tokenize(
identityId,
TokenizeIdentityData.create().fields(
"EmailAddress",
"PhoneNumber"
)
);
| Field | Type | Description |
|---|---|---|
id | String | Identity ID. |
fields | List<String> | PascalCase field names to tokenize. At least one required. |
Confirm tokenization
Check the response message, then use get tokenized fields to verify which fields are protected.
Response
{
"message": "Fields tokenized successfully"
}
| Field | Type | Description |
|---|---|---|
message | String | Confirmation that the fields were tokenized. |