Redact PII from text
redact_textRemove personal data from text before sending it to a model or storing it. Detects names, contact details, government and financial identifiers, health identifiers and payment card data. Returns the redacted text and a count of what was removed, by type — never the removed values themselves. Detection runs on eleyed infrastructure; content is not passed to a third-party model and nothing is stored. Costs credits based on length.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to redact. | |
| entities | No | Data types to detect, e.g. ["PERSON","EMAIL_ADDRESS"]. Omit to use all supported types. Call list_entity_types for the full set. | |
| specific_terms | No | Exact strings to remove in addition to detected entities, matched case-insensitively. Use for names or references the detector cannot know about. | |
| redaction_style | No | How removed content is replaced. Defaults to a type label, e.g. <PERSON>. | |
| score_threshold | No | Minimum detection confidence, 0-1. Lower finds more and risks false positives. | |
| custom_replacement_text | No | Replacement string when redaction_style is "custom". |