Identities

Tokenize identity

Tokenize multiple identity fields with the Java SDK.

POST/identities/{identity_id}/tokenize

Use 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"
    )
);
FieldTypeDescription
idStringIdentity ID.
fieldsList<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"
}
FieldTypeDescription
messageStringConfirmation that the fields were tokenized.