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),
)
FieldTypeDescription
identityIDstringIdentity ID.
fieldstringPascalCase 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)

FieldTypeDescription
FieldstringField you detokenized.
ValuestringOriginal plaintext value.