{"uid":"cap_EUr_lh3KYSuqktZRdDbFp","slug":"writerslogic-pii-redaction-with-verification-462caf10","name":"WritersLogic PII Redaction with Verification","description":"Redacts personal data from text at the level you choose and proves the output is clean by scanning it again. Pick a level: 1 government identifiers (SSN, ITIN, EIN, UK NINO, Canadian SIN, driver's license, passport), 2 adds dates of birth, 3 adds street addresses and phone numbers, 4 adds person names and email addresses. Then switch single categories on or off with include and exclude, or name the exact set with categories; extras are credit cards, IBANs, routing and account numbers, IP addresses, URLs, every date, and organizations. minDigitRun redacts any run of that many digits, terms redacts words you list (business names, project names), and keep protects strings such as your own email address. Detectors use checksums and structure rules (Luhn, ABA, mod-97, SSN and EIN rules) so ordinary numbers are not swallowed, and every later mention of a redacted value is redacted too. Replacements are labels like [REDACTED:SSN], one generic marker, numbered tokens like [PERSON_2] that stay consistent, or labels that keep the last four characters. The response lists category, position and confidence for each redaction and never repeats the original values. The engine rescans its own output and returns an error (payment released) rather than a result that still contains a detected value. Names and organizations are heuristic; set useModel to add a model pass for names, organizations and addresses, which sends the text to the configured language-model provider. Text only, up to 1,000,000 characters (the request body may be up to 4 MB of UTF-8); nothing is stored and no digest of the input is returned.","url":"https://agents.writerslogic.com/api/v1/redact-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"keep":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":200,"description":"Strings that must never be redacted, such as your own email address or company name. Case-insensitive, whole match."},"text":{"type":"string","maxLength":1000000,"minLength":1,"description":"The document text to redact (plain text, Markdown, CSV, JSON or HTML source)."},"level":{"type":"integer","maximum":4,"minimum":1,"description":"Cumulative preset, default 1. 1: government identifiers (SSN, ITIN, EIN, UK NINO, Canadian SIN, driver's license, passport); 2: level 1 plus dates of birth; 3: level 2 plus street addresses and phone numbers; 4: level 3 plus person names and email addresses."},"style":{"enum":["label","generic","numbered","last4"],"type":"string","description":"label (default): [REDACTED:SSN]. generic: [REDACTED]. numbered: [PERSON_1], same value same number. last4: [REDACTED:SSN:*6789] for numeric identifiers; this discloses the last four characters."},"terms":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":200,"description":"Words or phrases to redact wherever they appear (business names, project names, people you already know). Case-insensitive."},"exclude":{"type":"array","items":{"enum":["ssn","itin","ein","nino","sin","drivers_license","passport","date_of_birth","address","phone","person_name","email","credit_card","iban","routing_number","account_number","ip_address","url","date","organization"],"type":"string"},"maxItems":20,"description":"Categories to remove from the level preset."},"include":{"type":"array","items":{"enum":["ssn","itin","ein","nino","sin","drivers_license","passport","date_of_birth","address","phone","person_name","email","credit_card","iban","routing_number","account_number","ip_address","url","date","organization"],"type":"string"},"maxItems":20,"description":"Categories to add to the level preset."},"useModel":{"type":"boolean","description":"Add a language-model pass for names, organizations and addresses (when those categories are on). Sends the text, up to 60000 characters, to the configured model provider. Default false."},"categories":{"type":"array","items":{"enum":["ssn","itin","ein","nino","sin","drivers_license","passport","date_of_birth","address","phone","person_name","email","credit_card","iban","routing_number","account_number","ip_address","url","date","organization"],"type":"string"},"maxItems":20,"description":"Exact set of categories to redact; replaces the level preset when given."},"minDigitRun":{"type":"integer","maximum":40,"minimum":4,"description":"Also redact every run of at least this many digits (spaces, dots and hyphens between digits count as part of the run). This is the number of digits, not the numeric value."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.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__rY9V8ape77-mYQk3r_Nh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Redacts personally identifiable information (PII) from text at a chosen sensitivity level and verifies the output is clean by rescanning it","exampleAgentPrompt":"Please redact this document at level 3 (so it covers government IDs, dates of birth, addresses, and phone numbers), use labeled replacements like [REDACTED:SSN], and make sure my company email noreply@acme.com is never redacted: [paste document text here].","exampleUseCases":[{"title":"GDPR compliance before AI processing","prompt":"Before I send this customer support log to an external AI, redact all names and email addresses — use level 4 and label-style replacements so I can see what was removed."},{"title":"Legal document anonymization","prompt":"I need to strip SSNs, driver's license numbers, and passport numbers from this contract before filing it publicly — use level 1 with numbered tokens so the same person always gets the same token."},{"title":"Financial data sanitization","prompt":"Redact all credit card numbers, IBANs, and routing numbers from this CSV export, keep the string 'ACME-INTERNAL' untouched, and show me the last 4 digits of each card number so I can audit it."}],"resultDescription":"Returns the redacted version of the input text with all detected PII replaced by the chosen style of placeholder (e.g. [REDACTED:SSN], [PERSON_1], [REDACTED]), along with a structured report listing every redaction made (category, original span, replacement token) and a verification rescan confirming no residual PII remains in the output.","failureModes":["Text exceeds 1,000,000 character limit — request rejected with size error","Invalid level value outside 1–4 — validation error returned","Conflicting include/exclude/categories parameters — API returns a parameter conflict error","keep list strings not found in text — silently ignored, no error","Detector false negatives on highly unusual identifier formats — residual PII may survive verification scan","Payment not completed via x402 protocol — 402 Payment Required returned before processing"],"whenToPreferThis":"Choose this endpoint when you need deterministic, checksum-validated PII redaction with a verifiable clean-output guarantee — particularly for compliance workflows (GDPR, HIPAA, CCPA) where you need proof the output is clean, not just best-effort masking. It is superior to regex-only solutions because it uses Luhn, ABA, mod-97, SSN, and EIN structural rules to avoid false positives on ordinary numbers, and it tracks all subsequent mentions of a redacted value. Prefer it over LLM-based anonymization when you need reproducible, auditable redaction with consistent token numbering.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:03.837Z","isFirstParty":false,"canonicalSlug":"writerslogic-pii-redaction-with-verification-462caf10"}