{"uid":"cap_e7xX5T97L5k4PXfdNkgl-","slug":"agent-data-tools-revmesh2074-workers-dev-pii-detection-and-redaction-a93d0cc5","name":"PII Detection and Redaction: Emails, Phones, Cards, IBANs","description":"Find personal data in a text and get it back redacted: emails, phone numbers, card numbers (Luhn-checked), IBANs (mod-97), US SSNs, IP and crypto wallet addresses, each with its position, plus the text with every hit replaced by a label such as [EMAIL]. Hits are shown masked. Up to 20,000 characters; names and street addresses are not detected. Use before logging, storing or sending text to a model.","url":"https://agent-data-tools.revmesh2074.workers.dev/text/pii?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The text to scan (up to 20,000 characters)"},"types":{"type":"string","description":"Optional comma-separated types to look for: email, iban, credit_card, us_ssn, crypto_address, ip_address, phone (default all)"}}},"responseSchema":{"type":"object","properties":{"found":{"type":"number"},"items":{"type":"array","items":{"type":"object","properties":{"end":{"type":"number"},"type":{"type":"string"},"start":{"type":"number"},"masked":{"type":"string"}}}},"counts":{"type":"object","properties":{"email":{"type":"number"},"phone":{"type":"number"},"credit_card":{"type":"number"}}},"redacted":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Isd8lyEMUBtEo6C8-MC01","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Scans text up to 20,000 characters for personal data (emails, phones, credit cards, IBANs, SSNs, IPs, crypto wallets) and returns redacted text with each hit replaced by a label like [EMAIL], plus positions and masked values.","exampleAgentPrompt":"Before we store this customer support message in the database, scan it for any personal data like emails, phone numbers, credit card numbers, or IBANs, and give me back a redacted version with all hits replaced by labels like [EMAIL] or [CREDIT_CARD].","exampleUseCases":[{"title":"Sanitize logs before AI model ingestion","prompt":"We're about to send this user conversation transcript to our LLM for summarization — first scan it for any PII like emails, SSNs, or phone numbers and give me the redacted version so we don't leak personal data into the model."},{"title":"Privacy compliance check on form submission","prompt":"A user just submitted this contact form text — can you detect any sensitive info like credit card numbers, IBANs, or IP addresses in it, and return the text with everything masked so we stay GDPR-compliant before storing it?"},{"title":"Audit free-text field for accidental PII","prompt":"Check this batch of raw support ticket descriptions for any accidentally included personal data — emails, phone numbers, or crypto wallet addresses — and show me a redacted copy along with where each hit was found."}],"resultDescription":"Returns a JSON object with: `found` (total hit count), `items` (array of detected PII, each with type, start/end character positions, and a masked value), `counts` (per-type breakdown), and `redacted` (the original text with every PII hit replaced by a bracketed label such as [EMAIL], [PHONE], [CREDIT_CARD], [IBAN], [US_SSN], [IP_ADDRESS], or [CRYPTO_ADDRESS]).","failureModes":["Text exceeds 20,000 characters — request rejected or truncated","Invalid `types` filter value returns an error or ignores unknown type tokens","Names and street addresses are not detected — agent may expect them and find no hit","Luhn or mod-97 validation may cause false negatives for malformed card/IBAN numbers","Network timeout on large near-limit texts","Payment failure (x402) if caller has no credits and no USDC balance — call not charged"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call PII scan with no account setup, covering the most common structured PII types (emails, phones, credit cards with Luhn validation, IBANs with mod-97, SSNs, IPs, crypto wallets). It is ideal for pre-logging sanitization, GDPR compliance pipelines, or scrubbing text before sending it to an LLM. Prefer alternatives if you also need to detect unstructured PII like names or postal addresses, or if you need batch processing at scale without per-call costs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:21:47.042Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-pii-detection-and-redaction-a93d0cc5"}