{"uid":"cap_gjusX_n1tzBjcsgj93i7B","slug":"sitecheck-pii-redaction-393d8049","name":"SiteCheck PII Redaction","description":"Replaces personal data in a text with placeholders: e-mail addresses, phone numbers, IBANs (mod 97 checked), payment card numbers (Luhn checked only), IPv4 addresses and, with names true, person names found by the chat model. Returns the redacted text and counts per type. Original values are never returned.","url":"https://api.sitecheck-api.workers.dev/api/redact?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text, up to 20,000 characters"},"names":{"type":"boolean","description":"true to also replace person names (uses the chat model)"},"types":{"type":"array","items":{"type":"string"},"description":"Any of email, phone, iban, card, ip (default all)"}}},"responseSchema":{"type":"json","example":{"text":"Mail [EMAIL], card [CARD], IBAN [IBAN], server [IP], call [PHONE].","counts":{"ip":1,"card":1,"iban":1,"name":0,"email":1,"phone":1},"source":"patterns: card (Luhn), IBAN (mod 97), e-mail, IPv4, phone (libphonenumber)","checkedAt":"2026-10-14T07:01:47.674Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hx2WjLNxjDXkwO3BjAf05","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Replaces personally identifiable information (emails, phone numbers, IBANs, credit card numbers, IP addresses, and optionally person names) in text with labeled placeholders","exampleAgentPrompt":"Can you redact all the PII from this text, including person names, emails, phone numbers, credit cards, IBANs, and IP addresses: 'Contact John Smith at john@example.com or call +1-800-555-1234, his card is 4111111111111111'?","exampleUseCases":[{"title":"Sanitize support tickets before LLM processing","prompt":"Before you summarize these customer support tickets, please scrub out all emails, phone numbers, and credit card numbers so no PII reaches the model — here's the raw text: 'Customer Jane Doe called at 555-234-5678 and her card ending 4111111111111111 was declined.'"},{"title":"GDPR compliance for user-submitted content","prompt":"I need to anonymize this user-generated comment before we store it — replace all emails, IBANs, and person names with placeholders: 'Please refund to GB29NWBK60161331926819, my name is Maria Gonzalez and email is maria@example.com.'"},{"title":"Remove IP addresses from server logs","prompt":"Strip all IP addresses and email addresses from this log snippet so I can share it with the vendor: '2024-01-10 ERROR user admin@corp.com request from 192.168.1.42 failed.'"}],"resultDescription":"Returns the input text with PII replaced by labeled placeholders like [EMAIL], [PHONE], [CARD], [IBAN], [IP], and optionally [NAME]. Also returns a counts object showing how many of each PII type were found, a source field describing the detection methods used (e.g. Luhn check for cards, mod-97 for IBANs, libphonenumber for phones), and a checkedAt timestamp.","failureModes":["Text exceeds 20,000 character limit — request will be rejected or truncated","False positives: valid-looking but non-PII sequences matched by patterns (e.g. random number matching Luhn)","False negatives: unusual phone formats not recognized by libphonenumber","Name detection may miss uncommon or non-Western names when names flag is true","Network or payment failure returning 402 if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need fast, pattern-based PII redaction without sending data to a heavyweight NLP pipeline. It is ideal for pre-processing text before passing it to an LLM, for compliance workflows requiring IBAN/card/email removal, or when you need deterministic placeholder labels (e.g. [EMAIL]) rather than full entity-recognition annotations. Prefer alternatives if you need redaction of highly domain-specific PII (e.g. medical record IDs) or require a full named-entity recognition model across many entity types beyond the supported five.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:44:35.218Z","isFirstParty":false,"canonicalSlug":"sitecheck-pii-redaction-393d8049"}