Identities
Tokenize field
Tokenize a single identity field with the Python SDK.
POST
/identities/{identity_id}/tokenize/{field}Use blnk.identity.tokenize_field to tokenize one identity field.
Call the method
response = blnk.identity.tokenize_field(
"idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
"EmailAddress",
)
| Field | Type | Description |
|---|---|---|
id | str | Identity ID. |
field | str | PascalCase field name to tokenize. |
Confirm tokenization
Check the response message, then use get tokenized fields to verify the field is protected.
Response
{
"message": "Field tokenized successfully"
}
| Field | Type | Description |
|---|---|---|
message | str | Confirmation that the field was tokenized. |