How to detokenize multiple fields in Identities.
curl --request POST \
--url http://localhost:5001/identities/{identity_id}/detokenize \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"fields": [
"FirstName",
"LastName",
"EmailAddress",
"PhoneNumber"
]
}'
{
"fields" : {
"firstName": "Alice",
"lastName": "Smith",
"emailAddress": "alice.smith@example.com",
"phoneNumber": "+1234567890"
}
}
X-blnk-key: <api-key>.
Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.
See also: Secure your Blnk server
curl --request POST \
--url http://localhost:5001/identities/{identity_id}/detokenize \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"fields": [
"FirstName",
"LastName",
"EmailAddress",
"PhoneNumber"
]
}'
{
"fields" : {
"firstName": "Alice",
"lastName": "Smith",
"emailAddress": "alice.smith@example.com",
"phoneNumber": "+1234567890"
}
}
Was this page helpful?
curl --request POST \
--url http://localhost:5001/identities/{identity_id}/detokenize \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"fields": [
"FirstName",
"LastName",
"EmailAddress",
"PhoneNumber"
]
}'
{
"fields" : {
"firstName": "Alice",
"lastName": "Smith",
"emailAddress": "alice.smith@example.com",
"phoneNumber": "+1234567890"
}
}