Identities
Tokenize identity
Tokenize multiple identity fields with the TypeScript SDK.
POST
/identities/{identity_id}/tokenizeUse 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'],
},
);
| Field | Type | Description |
|---|---|---|
id | string | Identity ID. |
fields | 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. |