Guardrails APIs
PII anonymization and de-anonymization
Guardrails API Documentation
Guardrails APIs
- GETHealth Check
- GETStatus Check
- GETModels Loaded
- POSTGuardrails Detect
- POSTGuardrails Batch Detect
- POSTPII anonymization and de-anonymization
- POSTDetect Hallucination
- POSTGuardrails Adherence
- POSTGuardrails Relevancy
- POSTAdd Policy
- GETGet Policy
- PATCHModify Policy
- DELDelete Policy
- GETList Policies
- POSTDetect with Policy
Guardrails APIs
PII anonymization and de-anonymization
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
Body
application/json
Response
200 - application/json
Successful Response
The response is of type object
.
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"
}