Identities

Tokenize identity

Tokenize multiple identity fields with the TypeScript SDK.

POST/identities/{identity_id}/tokenize

Use blnk.Identity.tokenize to tokenize several identity fields.

Call the method

const response = await blnk.Identity.tokenize(
  'idt_3b63c8da-af29-4cc3-ad38-df17d87456e6',
  {
    fields: ['FirstName', 'EmailAddress'],
  },
);
FieldTypeDescription
idstringIdentity ID.
fieldsstring[]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.