Date of Birth (PII)
Data protection endpoint
METHOD: POST
ENDPOINT: https://api.playground.protegrity.com/v1/dob
DESCRIPTION:
Protect or unprotect a phone number. The received token is length-preserving. May return leading zeroes.
ATTRIBUTES:
data
(required) Input data to transform.
operation
(required) Specify if to protect or unprotect data. Accepts: [ protect | unprotect ]
.
OPTIONS:
year
(optional) Set to true
to leave the year in the clear. Must be set to true
when unprotecting the string tokenized using this option. Accepts: [ true | false ]
. Defaults to false
.
SAMPLE REQUEST
curl --location 'https://api.playground.protegrity.com/v1/dob' \
--header 'x-api-key: <API_Key>' \
--header 'Content-Type: application/json' \
--header 'Authorization: <JWT_TOKEN>' \
--data '{
"operation": "protect",
"data": ["1980/12/10", "1965/01/27"],
"options": {
"year": true
}
}'
SAMPLE RESPONSE
[
"1980/03/24",
"1965/08/11"
]
Last modified January 15, 2025