curl -X POST https://api.chersus.com/v1/run \
-H "Authorization: Bearer chrs_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"type": "text",
"value": "Contact Jane Doe at jane.doe@example.com about invoice #4821."
},
"pipeline": [
{ "id": "redact", "service": "governance.pii.redact" }
]
}'const res = await fetch("https://api.chersus.com/v1/run", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
type: "text",
value: "Contact Jane Doe at jane.doe@example.com about invoice #4821.",
},
pipeline: [{ id: "redact", service: "governance.pii.redact" }],
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.chersus.com/v1/run",
headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
json={
"input": {
"type": "text",
"value": "Contact Jane Doe at jane.doe@example.com about invoice #4821.",
},
"pipeline": [{"id": "redact", "service": "governance.pii.redact"}],
},
)
data = res.json()200 · 26ms · 61 chars
{
"trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
"status": "completed",
"output": {
"type": "text",
"value": "Contact [REDACTED] at [REDACTED] about invoice #4821."
},
"results": {
"redact": { "kind": "transform", "status": "ok", "changes": 2 }
},
"usage": {
"billed": [
{ "unit": "characters", "quantity": 61, "steps": ["redact"] }
]
},
"audit": { "region": "eu-nl-1", "retention": "none", "total_ms": 26 }
}Use governance.pii.redact before text leaves your system: support tickets, log lines,
LLM prompts, or anything you forward to a third party. The service replaces names,
email addresses, phone numbers, and ID-like strings with stable placeholders, so
downstream tools still see consistent sentence structure.
The service takes two params: entities (default ["name", "email", "id"]) and mask
(default "[REDACTED]"). Redaction is one-way. When you need the original values back
later, use governance.pii.tokenize instead; it returns reversible tokens.
- KIND
- transform
- MODEL
- Roblox/roblox-pii-classifier-v2
- LICENSE
- Apache 2.0
- LANGUAGES
- Multilingual
- REGION
- 26 EU cities