Identities

Tokenize identity

Tokenize multiple identity fields with the Python SDK.

POST/identities/{identity_id}/tokenize

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

Call the method

response = blnk.identity.tokenize(
  "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
  {
    "fields": ["FirstName", "EmailAddress"],
  },
)
FieldTypeDescription
idstrIdentity 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
messagestrConfirmation that the fields were tokenized.