Identities
Detokenize field
Detokenize a single identity field with the Go SDK.
GET
/identities/{identity_id}/detokenize/{field}Use client.Identity.DetokenizeField to detokenize one identity field. This call is a GET.
Call the method
field, _, _ := client.Identity.DetokenizeField(
"idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
string(blnkgo.TokenizableFieldEmailAddress),
)
| Field | Type | Description |
|---|---|---|
identityID | string | Identity ID. |
field | string | PascalCase field name to detokenize. |
Use the plaintext value
Read field.Value for the original field value. Handle it securely and avoid logging it.
Response
{
"field": "EmailAddress",
"value": "alice.smith@example.com"
}Go response (*blnkgo.DetokenizeFieldResponse)
| Field | Type | Description |
|---|---|---|
Field | string | Field you detokenized. |
Value | string | Original plaintext value. |