Skip to main content
POST
/
guardrails
/
pii
curl --request POST \ --url https://api.enkryptai.com/guardrails/pii \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "text": "John Doe, born on January 1, 1970, currently lives in New York City, embarked on a journey filled with diverse experiences and milestones.", "mode": "request", "key": "null" } '
{
  "text": "<PERSON_0>, born on <DATE_TIME_0>, currently lives in <LOCATION_0>, embarked on a journey filled with diverse experiences and milestones.",
  "key": "1e73a3335f304890a0ffc4b2aaab14d7"
}

Authorizations

apikey
string
header
required

Body

application/json
text
string
required
mode
enum<string>
default:request
required
Available options:
request,
response
key
string

Response

200 - application/json

Successful Response

text
string
key
string