{"uid":"cap_9tDkvg00GrVNAG-ZPnyWJ","slug":"x402-deployer-x402-deployer-workers-dev-43563f86","name":"PII Detector & Data Leak Scanner","description":"PII detector / data leak scanner. Emails, phones, SSNs, credit cards, addresses, names, IPs, API tokens. Returns matches + risk_level. Optional redaction with [TYPE] tokens.","url":"https://x402-deployer.x402-deployer.workers.dev/detect-pii","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":{"text":{"type":"string","description":"Text to scan for PII. Max 25,000 chars."},"redact":{"type":"boolean","description":"Optional. If true, also returns redacted_text with matches replaced by [TYPE] tokens. Default false."}}},"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":{"matches":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"value":{"type":"string"}}}},"risk_level":{"type":"string"},"match_count":{"type":"integer"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"text":"Please contact our support team at support@example.com or call 555-123-4567 for assistance. Our office is located at 123 Main Street, Springfield, IL 62701.","redact":true},"type":"http","method":"POST","bodyType":"json"}},"response":{"model":"hermes-3-llama-3.1-405b","source":"morpheus","matches":[{"type":"email","value":"support@example.com","context":"Please contact our support team at support@example.com"},{"type":"phone","value":"555-123-4567","context":"or call 555-123-4567 for assistance"},{"type":"physical_address","value":"123 Main Street, Springfield, IL 62701","context":"Our office is located at 123 Main Street, Springfield, IL 62701"}],"risk_level":"medium","input_chars":156,"match_count":3,"pii_density":0.65,"redacted_text":"Please contact our support team at [EMAIL] or call [PHONE] for assistance. Our office is located at [PHYSICAL_ADDRESS]."}},"exampleRequest":{"text":"Please contact our support team at support@example.com or call 555-123-4567 for assistance. Our office is located at 123 Main Street, Springfield, IL 62701.","redact":true},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"1.00","successRate":"1.00","reviews":1,"stars":"5.0","state":"rated"},"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_3lJPjFJgUHcAWx_EIopAF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans text for personally identifiable information (emails, phones, SSNs, credit cards, addresses, names, IPs, API tokens), returns matches with risk level, and optionally redacts them with [TYPE] placeholder tokens.","exampleAgentPrompt":"Scan this text for any PII — emails, phone numbers, SSNs, credit cards, API tokens, addresses — and redact them with [TYPE] placeholders so I can safely store it: 'Hi, I'm John Smith, reach me at john@example.com or 555-867-5309, my SSN is 123-45-6789.'","exampleUseCases":null,"resultDescription":"Returns a list of detected PII matches (each with type, value, and position), an overall risk_level (e.g. low/medium/high), and optionally a redacted version of the input text where sensitive values are replaced with [TYPE] tokens.","failureModes":["Empty or missing input text returns an error or empty matches list","Very long text may time out or be truncated","Obfuscated or encoded PII (e.g. base64-encoded SSNs) may not be detected","False positives on numeric sequences that resemble phone numbers or SSNs","API token patterns may miss non-standard token formats","Payment required error (402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need to detect and optionally redact multiple categories of PII in a single call — especially when you need a risk_level summary alongside individual matches. Prefer this over regex-only approaches when you need broad coverage across entity types (SSN, credit card, API tokens, names, IPs) simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":5,"lastUsedAt":"2026-07-18T00:40:41.420Z","lastSuccessfullyRanAt":"2026-07-18T00:40:41.420Z","lastHealthCheckAt":"2026-09-14T00:43:02.469Z","isFirstParty":false}