{"uid":"cap_kGQSpRN3LHO_oCLt15KuV","slug":"pii-redact-daa14f53","name":"PII Redact","description":"Detect and redact PII in text or JSON. Recognizers are pure pattern/checksum matching (regex + Luhn/mod-97/SSN-area validation) — no LLM calls, no external services. Person names and dates of birth are matched only via nearby context (e.g. 'Mr. Smith', 'DOB: ...'), not general NER, to keep false positives low.","url":"https://pii-redact.x402supply.com/tools/redact?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"anyOf":[{"type":"string"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"options":{"type":"object","properties":{"mode":{"enum":["mask","label","remove"],"type":"string"},"locale":{"enum":["us"],"type":"string"},"entities":{"type":"array","items":{"enum":["email","phone","ssn","credit_card","iban","ip","us_passport","us_driver_license","dob","us_address","person_name"],"type":"string"},"minItems":1}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"counts":{"ssn":1,"email":1,"phone":1},"findings":[{"type":"email","span_end":40,"confidence":0.95,"span_start":20},{"type":"phone","span_end":56,"confidence":0.85,"span_start":44},{"type":"ssn","span_end":73,"confidence":0.9,"span_start":62}],"redacted":"Contact Jane Doe at [EMAIL_1] or [PHONE_1]. SSN [SSN_1]."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6rToYf5gft-TEOhynbLBc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and redacts personally identifiable information (PII) in text or JSON using regex and checksum-based pattern matching, with configurable mask/label/remove modes.","exampleAgentPrompt":"Can you redact all PII from this text — mask any emails, phone numbers, SSNs, and credit card numbers: 'Contact John at john.doe@example.com or 555-123-4567, SSN 123-45-6789, card 4111111111111111'?","exampleUseCases":[{"title":"Sanitize user support tickets","prompt":"I need to scrub PII from this support ticket before it goes into our analytics pipeline — mask any email addresses, phone numbers, and US addresses in the text: 'Customer Jane called from 555-987-6543, lives at 42 Maple St, Boston and emailed support@jane.com'."},{"title":"Anonymize JSON user records","prompt":"Take this JSON user record and remove all SSNs, credit card numbers, and IBANs from it before we archive it — use remove mode so the fields just disappear entirely."},{"title":"Label PII in compliance audit","prompt":"I need to label (don't mask, just tag) every piece of PII in this document so our compliance team can review what sensitive data types are present — flag emails, phone numbers, dates of birth, and person names."}],"resultDescription":"Returns the input text or JSON with PII replaced, removed, or labeled according to the chosen mode. In mask mode, PII spans are replaced with tokens like [EMAIL] or [SSN]. In label mode, the original text is annotated with entity type tags. In remove mode, PII is deleted. The response reflects the same structure as the input (string or JSON object).","failureModes":["Invalid or missing 'input' field returns a validation error","Empty 'entities' array (minItems: 1 required) causes a schema validation failure","Unsupported locale (only 'us' is supported) returns an error","Malformed JSON input object may cause parsing failures","Person names or dates of birth without nearby context keywords (e.g. 'Mr.', 'DOB:') may not be detected, leading to missed PII","High false-negative rate for NER-style names not preceded by titles or context markers","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic PII redaction without LLM overhead — ideal for pipelines where privacy compliance is required but you want no external AI inference, low latency, and predictable behavior. Best suited for structured data (JSON) or semi-structured text with clear PII patterns. Prefer this over LLM-based redaction when you need checksum-validated matching (e.g., Luhn for credit cards, mod-97 for IBANs) and low false-positive rates for US locale data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T18:30:40.882Z","isFirstParty":false,"canonicalSlug":"pii-redact-5ea3d6f3"}