Identities
Detokenize identity
Detokenize multiple identity fields with the Python SDK.
POST
/identities/{identity_id}/detokenizeUse blnk.identity.detokenize to detokenize several identity fields.
Call the method
response = blnk.identity.detokenize(
"idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
{
"fields": ["FirstName", "EmailAddress"],
},
)
| Field | Type | Description |
|---|---|---|
id | str | Identity ID. |
fields | string[] | PascalCase field names to detokenize. Pass [] for all tokenized fields. |
Use the plaintext values
Read response.data["fields"] for the original values. Handle these values securely and avoid logging them.
Response
{
"fields": {
"firstName": "Alice",
"emailAddress": "alice.smith@example.com"
}
}
| Field | Type | Description |
|---|---|---|
fields | dict[str, str] | Original values for the fields you requested. |