{"uid":"cap_DfBDOBxkzxAlE-5uCEt5o","slug":"x402-deployer-x402-deployer-workers-dev-adb427b6","name":"PII Redactor / Privacy Scrubber","description":"PII redactor / mask emails phones SSNs IBANs credit cards IPs / GDPR safe text / privacy scrubber. Two-stage redaction: a deterministic regex pre-pass for structural PII (email, phone, credit card, SSN, IBAN, IPv4/v6, URL), then Venice mistral-small-3-2-24b for residual PII (full names, street addresses, dates of birth). Returns the redacted text and a list of every (type, value, masked_with) triple.","url":"https://x402-deployer.x402-deployer.workers.dev/pii-redact?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["text"],"properties":{"mask":{"type":"string","description":"Replacement string. Use 'type' (default) for [EMAIL], [PHONE], etc.; or any literal string for a uniform mask."},"text":{"type":"string","description":"Text to redact. Up to 30,000 chars."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"found":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"value":{"type":"string"},"masked_with":{"type":"string"}}}},"model":{"type":"string"},"source":{"type":"string"},"original":{"type":"string"},"redacted":{"type":"string"},"found_count":{"type":"integer"}}}}}}},"responseSchema":null,"example":{"request":{"text":"Please redact any PII from this sample text: Alice Johnson called on 2024-03-20 from 555-123-4567. Her email is alice.johnson@example.com and she lives at 789 Maple Street, Seattle, WA 98101. Her SSN is 987-65-4321."},"response":{"found":[{"type":"email","value":"alice.johnson@example.com","masked_with":"[EMAIL]"},{"type":"ssn","value":"987-65-4321","masked_with":"[SSN]"},{"type":"phone","value":"2024-03-20","masked_with":"[PHONE]"},{"type":"phone","value":"555-123-4567","masked_with":"[PHONE]"},{"type":"name","value":"Alice Johnson","masked_with":"[NAME]"},{"type":"address","value":"789 Maple Street, Seattle, WA 98101","masked_with":"[ADDRESS]"}],"model":"hermes-3-llama-3.1-405b","source":"regex + morpheus","original":"Please redact any PII from this sample text: Alice Johnson called on 2024-03-20 from 555-123-4567. Her email is alice.johnson@example.com and she lives at 789 Maple Street, Seattle, WA 98101. Her SSN is 987-65-4321.","redacted":"Please redact any PII from this sample text: [NAME] called on [PHONE] from [PHONE]. Her email is [EMAIL] and she lives at [ADDRESS]. Her SSN is [SSN].","found_count":6}},"exampleRequest":{"text":"Please redact any PII from this sample text: Alice Johnson called on 2024-03-20 from 555-123-4567. Her email is alice.johnson@example.com and she lives at 789 Maple Street, Seattle, WA 98101. Her SSN is 987-65-4321."},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CeqtDrrNnoqqvlZ3zBkV3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Redacts PII (emails, phones, SSNs, IBANs, credit cards, IPs, names, addresses, dates of birth) from text using a two-stage regex + LLM pipeline, returning sanitized text and a list of every redacted entity.","exampleAgentPrompt":"Can you redact all PII from this text before I store it — 'John Smith called from +1-555-867-5309, his SSN is 123-45-6789 and he paid with card 4111 1111 1111 1111, reach him at john.smith@example.com' — and give me back the clean version plus a list of everything that was masked?","exampleUseCases":null,"resultDescription":"Returns the redacted version of the input text (with PII replaced by masked tokens) and a structured list of every redacted entity as (type, original_value, masked_with) triples — covering emails, phone numbers, SSNs, IBANs, credit cards, IPv4/v6 addresses, URLs, full names, street addresses, and dates of birth.","failureModes":["Empty or missing input text returns an error","Extremely long texts may hit processing limits or increase latency","LLM stage may occasionally miss highly ambiguous or culturally atypical PII","Non-English names or addresses may have lower recall from the LLM stage","Payment failure (insufficient USDC balance) results in 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you need a robust, two-stage PII redaction pipeline that handles both structurally detectable PII (regex) and contextual PII (names, addresses, DOBs via LLM) in a single call, especially for GDPR-safe text processing, log sanitization, or anonymizing user-generated content before downstream storage or API calls. Prefer this over a pure regex scrubber when residual contextual PII (full names, street addresses) must also be caught.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:44:21.819Z","isFirstParty":false,"canonicalSlug":"x402-deployer-x402-deployer-workers-dev-adb427b6"}