Identities

Detokenize field

Detokenize a single identity field with the Python SDK.

GET/identities/{identity_id}/detokenize/{field}

Use blnk.identity.detokenize_field to detokenize one identity field.

Call the method

response = blnk.identity.detokenize_field(
  "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
  "EmailAddress",
)
FieldTypeDescription
idstrIdentity ID.
fieldstrPascalCase field name to detokenize.

Use the plaintext value

Read response.data["value"] for the original field value. Handle it securely and avoid logging it.

Response

{
  "field": "EmailAddress",
  "value": "alice.smith@example.com"
}
FieldTypeDescription
fieldstrField you detokenized.
valuestrOriginal plaintext value.