# WritersLogic PII Redaction with Verification

> WritersLogic PII Redaction with Verification is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-19).

Redacts personally identifiable information (PII) from text at a chosen sensitivity level and verifies the output is clean by rescanning it

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/redact-text?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-pii-redaction-with-verification-462caf10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EUr_lh3KYSuqktZRdDbFp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-pii-redaction-with-verification-462caf10 -d '<json body>'
```

Example prompt: 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].

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-pii-redaction-with-verification-462caf10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
