PII redaction
Remove personal data from text.
POST /v1/pii-redaction
What it does
Send text. Get back the same text with personal data replaced by labels, plus a count of each type removed.
Input
textstring- The text to redact.
Output
redacted_textstring- The text with personal data replaced.
countsobject- Number of redactions for each type.
Sample request
curl https://api.focusllm.com/v1/pii-redaction \
-H "Authorization: Bearer $FOCUSLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Call Alex Doe on +1 202 555 0143."
}'{
"redacted_text": "Call [NAME] on [PHONE].",
"counts": {
"name": 1,
"phone": 1
}
}Price
$0.005 per successful call
Sample price. Paid from prepaid credits.
Get an API key