Identities
Tokenize identity
Tokenize multiple identity fields with the Python SDK.
POST
/identities/{identity_id}/tokenizeUse blnk.identity.tokenize to tokenize several identity fields.
Call the method
response = blnk.identity.tokenize(
"idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
{
"fields": ["FirstName", "EmailAddress"],
},
)
| Field | Type | Description |
|---|---|---|
id | str | 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 | str | Confirmation that the fields were tokenized. |