pii-redactor
@1.0.0Find personally identifiable information in the supplied text and return a redacted copy. - redacted — the original text with each piece of PII repla…
What it does
# pii-redactor Find personally identifiable information in the supplied text and return a redacted copy. - redacted — the original text with each piece of PII replaced by a typed placeholder such as [EMAIL], [PHONE], [NAME], [ADDRESS], [SSN], or [CREDIT_CARD]. - redactions — one entry per item replaced, each with its type (the placeholder label without brackets) and the original value. - count — the total number of items redacted. Detect names, email addresses, phone numbers, postal addresses, government identifiers, and payment card numbers. Preserve all non-PII wording exactly. If no PII is present, return the text unchanged with an empty redactions array and a count of 0.
Inputs & outputs
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string"
}
}
}{
"type": "object",
"required": [
"redacted",
"redactions",
"count"
],
"properties": {
"count": {
"type": "integer"
},
"redacted": {
"type": "string"
},
"redactions": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}Call it
Authenticate with a Plinth API key (plk_live_…). You're billed at most the price cap; provider failures are never charged.
curl -X POST https://www.plinthai.xyz/api/v1/agents/pii-redactor/invoke \
-H "Authorization: Bearer plk_live_…" \
-H "Content-Type: application/json" \
-d '{"input": {"text": "…"}}'