Text Intelligence: PII Redaction & Moderation API
Published by @mdforge
· Verified Publisher
99.99% uptime
~4ms avg
AI Score 94/100
Strip emails, credit cards, IBANs & API keys before LLM calls, screen profanity/prompt-injections, and score readability.
Live Interactive Playground
https://api.indieapis.com/v1/text-intelligence/redact-pii
Detect and mask emails, phones, credit cards, IBANs, SSNs, IPv4s, and API keys (also supports POST JSON body).
Live JSON Response
Click "Run Live Test" to query live data
{
"ok": true,
"data": {
"pii_found": true,
"total_redactions": 3,
"counts_by_type": {
"API_KEY": 1,
"EMAIL": 1,
"IPV4": 1
},
"redacted_text": "Contact [REDACTED_EMAIL] with key [REDACTED_API_KEY] from [REDACTED_IPV4]"
}
}
Overview & Documentation
Fast, deterministic guardrails and NLP metrics built specifically for AI agents, RAG pipelines, and UGC apps — zero third-party LLM latency or data retention.
Three focused endpoints:
/redact-pii— Automatically detects and masks emails, phones, Luhn-verified credit cards, valid IBANs, SSNs, IPv4s, and leaked API keys (sk_live_,ia_live_,ghp_, AWS/Google keys) before sending prompts to models./moderate— Screens profanity, spam-link density, caps shouting, and common LLM prompt-injection attacks with a 0–100 risk score./analyze— Language detection, Flesch-Kincaid readability, reading time, sentiment, and top keywords.
Gateway Headers & Hard Caps
Every response includes X-Quota-Limit, X-Quota-Used, X-Quota-Remaining, and X-Quota-Reset.
When your monthly quota is reached, the gateway returns 429 QUOTA_EXCEEDED so you are never billed surprise overages.
Complete Endpoint Reference (3 Endpoints)
Base URL: https://api.indieapis.com/v1/text-intelligence · Scoped MCP: https://indieapis.com/mcp/text-intelligence
| Method | Path | Parameters | Description |
|---|---|---|---|
| GET | /redact-pii |
text*
|
Detect and mask emails, phones, credit cards, IBANs, SSNs, IPv4s, and API keys (also supports POST JSON body). |
| GET | /moderate |
text*
|
Score content risk (0–100) across profanity, prompt injections, excessive links, and spam (GET or POST). |
| GET | /analyze |
text*
|
Compute word/sentence counts, reading time, Flesch-Kincaid grade, language, sentiment, and keywords (GET or POST). |