PII redaction
Detect and strip names, emails, phones, SSNs, cards, and PHI from text before you store or log it.
POST/v1/redact
The example in the published schema
charged 00 credits
- auth (bearer key)
- per-key throttle
- validate body
- balance precheck
- run the capability
- charge credits ON SUCCESS ONLY
- JSON
The request body/v1/redact
{ "text": "Call Jane Doe at 415-555-0199 or jane@acme.com." }
The responsepublished example
// sending the call
// 0 credits charged so farcurl https://api.thecompound.tech/v1/redact \
-H "Authorization: Bearer $COMPOUND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Call Jane Doe at 415-555-0199 or jane@acme.com."}'Scored
7 of 7 field checks passed when the eval suite last ran against production, on 2026-07-08. Every endpoint's score
The Content & moderation guide has this endpoint with its example response. The reference has every parameter.
More from Content & moderation
Content moderation $0.02/itemText or an image against YOUR policy → allow, review, or block, with the categories and excerpts that drove the call.Brand-voice rewrite $0.03/callAny copy → your brand voice. Describe the voice or paste a sample; get the rewrite and what changed.Product copy $0.05/productSpecs and an audience → listing-ready titles, bullets, a description, and SEO keywords, per channel.Image description $0.03/imageAn image → accessible alt text, a caption, tags, and any text found inside it. Accessibility and catalogs in one call.