# OpenVerbs PII Redaction

> OpenVerbs PII Redaction is a paid API for AI agents from scan.openverbs.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Replaces detected PII spans in text with labels, masks, or stable hashed fingerprints using fully offline processing

## Facts

- Endpoint: POST https://scan.openverbs.com/v1/redact
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openverbs-pii-redaction-a5ccf24c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SPbKK5IS0_pKm_fuIa_Me

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 openverbs-pii-redaction-a5ccf24c -d '<json body>'
```

Example prompt: Redact all PII from this text using hash mode so equal values stay linkable: 'Contact John at john@example.com or call 555-123-4567, card ending 4111-1111-1111-1111.'

## When to prefer this

Choose this endpoint when you need fully offline, privacy-preserving PII redaction with flexible replacement styles — especially when you want stable hash fingerprints to keep linkability without exposing raw values. Prefer it over cloud-based PII APIs when data must not leave local processing, or when you need per-type filtering (e.g. only redact credit cards and SSNs). The hash mode is particularly useful for analytics pipelines where you need to join anonymized records.

## Known failure modes

- Missing required 'text' field returns validation error
- Text exceeding 200,000 characters is rejected
- Invalid 'mode' value outside enum returns 400
- Invalid PII type in 'types' array returns schema validation error
- Empty mask character or mask longer than 8 characters rejected
- Payment not provided or insufficient USDC balance results in 402 response

## How this service works

Return the input text with every detected PII span replaced. `mode` controls the replacement: "label" (default) → `[EMAIL]`; "mask" → the value covered with a mask character; "hash" → `[EMAIL:1a2b3c4d]`, a stable per-value fingerprint so equal values stay linkable without exposing them. Same validated detectors as `/detect`. Fully offline.

## Output

Returns the original text with every detected PII span replaced according to the chosen mode: 'label' wraps type names in brackets (e.g. [EMAIL]), 'mask' covers characters with the specified mask character (default •), and 'hash' produces a stable bracketed fingerprint (e.g. [EMAIL:1a2b3c4d]) that remains consistent across identical values for linkability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "mask": {
       "type": "string",
       "maxLength": 8,
       "minLength": 1,
       "description": "Mask character used when mode=\"mask\" (first character is used). Default \"•\"."
      },
      "mode": {
       "enum": [
        "label",
        "mask",
        "hash"
       ],
       "type": "string",
       "description": "Replacement style. Default \"label\"."
      },
      "text": {
       "type": "string",
       "maxLength": 200000,
       "minLength": 1,
       "description": "The text to redact."
      },
      "types": {
       "type": "array",
       "items": {
        "enum": [
         "email",
         "phone",
         "credit_card",
         "iban",
         "ipv4",
         "ipv6",
         "us_ssn",
         "jwt"
        ],
        "type": "string"
       },
       "minItems": 1,
       "description": "Optional subset of PII types to look for. Omit to scan for all."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openverbs-pii-redaction-a5ccf24c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scan.openverbs.com](https://www.zero.xyz/host/scan.openverbs.com/llms.txt)
