Redact PII
promptguard_redactRedact PII (emails, phone numbers, SSNs, credit cards, API keys) from text. Returns sanitized text with each entity replaced by a labeled placeholder, e.g. [EMAIL_REDACTED], [PHONE_REDACTED], [SSN_REDACTED], and the PII types found. Never returns the original text. Each call counts as one Request on your PromptGuard plan. When to use: Before including user data in LLM prompts, when processing customer messages, or when building RAG pipelines that ingest documents containing personal information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text content to redact PII from |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||