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" }'
Copy
Ask AI
{ "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" }
🛡️ Guardrails API Endpoints
PII anonymization and de-anonymization
POST
/
guardrails
/
pii
Copy
Ask AI
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" }'
Copy
Ask AI
{ "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" }