{"uid":"cap_SPqoBqdEt2u5gOuPDMd_f","slug":"402utils-pii-redaction-mask-remove-label-0be86f3f","name":"402utils PII Redaction (Mask/Remove/Label)","description":"Mask PII in free text before you send it to an LLM or write it to a log. Pattern-based detection (not ML): emails, phone numbers (Google libphonenumber), IBANs (mod-97), payment cards (Luhn), URLs and IPs. Choose types[] and mode: mask (j***@d***.com, readable), remove, or label ([EMAIL_1], re-identifiable by index). Names and postal addresses are out of scope. The input text is never logged or stored.","url":"https://402utils.com/v1/redact?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["mask","remove","label"],"type":"string","default":"mask","description":"mask (readable partial mask), remove (delete), or label ([TYPE_n])."},"text":{"type":"string","description":"The text to redact (max 256 KB UTF-8)."},"types":{"type":"array","items":{"enum":["email","phone","iban","card","url","ip"],"type":"string"},"description":"PII types to redact. Defaults to all six."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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":{"p10Cents":"0.3000","medianCents":"0.3000","p90Cents":"0.3000","minCents":"0.3000","maxCents":"0.3000","p95Cents":"0.3000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FlQm5Tn_OfNsQyG_vUqmC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Redacts PII (emails, phone numbers, IBANs, payment cards, URLs, IPs) from free text using pattern-based detection with three output modes: mask, remove, or label.","exampleAgentPrompt":"Before sending this support ticket to the AI, mask all the PII in it — emails, phone numbers, payment cards, IBANs, URLs, and IPs — using mask mode so it stays readable: 'Hi, my email is john.doe@example.com, card 4111111111111111, and I called from +1-800-555-0199.'","exampleUseCases":[{"title":"Sanitize customer support tickets for AI review","prompt":"Clean up these support messages before they go to our LLM for auto-response — remove all emails, phone numbers, card numbers, and IP addresses so nothing sensitive leaks into our logs."},{"title":"Anonymize payment data in transaction logs","prompt":"We're sharing raw transaction logs with our analytics team. Label all the card numbers, IBANs, and URLs in this batch of records so we can re-identify them later if needed, but keep them safe for now."},{"title":"Redact PII from user feedback before analysis","prompt":"Mask the personal info in these customer feedback messages — emails, phone numbers, everything — but keep them readable so our team can still understand the context when they review them."}],"resultDescription":"Returns the input text with specified PII types redacted according to the chosen mode: 'mask' partially obscures values (e.g. j***@d***.com), 'remove' deletes them entirely, and 'label' replaces them with indexed placeholders (e.g. [EMAIL_1]) for potential re-identification. The input text is never logged or stored by the service.","failureModes":["Text exceeds 256 KB UTF-8 limit — request rejected","Invalid enum value in types[] array — validation error","Invalid mode value — validation error","Malformed JSON body — 400 bad request","Payment not included or insufficient USDC — 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic pattern-based PII redaction (no ML inference latency or hallucination risk) for structured PII types: emails, phone numbers (Google libphonenumber), IBANs (mod-97 validated), payment cards (Luhn-checked), URLs, and IPs. Ideal for preprocessing text before LLM calls, sanitizing logs, or compliance workflows. Not suitable for detecting names or postal addresses, which are out of scope.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:43:10.223Z","isFirstParty":false,"canonicalSlug":"402utils-pii-redaction-mask-remove-label-0be86f3f"}