# DexL PII Redaction

> DexL PII Redaction is a paid API for AI agents from agents.dexl.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Replaces personally identifiable information (emails, phones, cards, IBANs, IPs, names, addresses, IDs) in text with typed placeholders using a hybrid deterministic+model approach

## Facts

- Endpoint: POST https://agents.dexl.io/v1/tools/redact-pii
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dexl-pii-redaction-a3a482a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0P1noEyk1s7w_K__yK--R

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 dexl-pii-redaction-a3a482a9 -d '<json body>'
```

Example prompt: Can you redact all the PII from this customer support message before I store it — strip out emails, phone numbers, names, addresses, credit card numbers, IBANs, and IP addresses, and replace each one with a labeled placeholder: 'Dear John Smith, please call us at 555-123-4567 or email john@example.com. Your card ending 4242 was charged.'

## When to prefer this

Choose this endpoint when you need reliable, typed-placeholder PII redaction with a hybrid approach: deterministic regex for high-precision fields (email, phone, card, IBAN, IP) combined with model judgment for harder cases (names, addresses, IDs). Prefer it over pure regex tools when named entities matter, and over pure LLM redaction when you need deterministic guarantees for structured PII like card numbers. The rejection guard (output < 50% input = error) makes it safer than alternatives that might silently delete text.

## Known failure modes

- Input text exceeds 8000 character limit — request rejected
- Invalid PII kind enum value in kinds array — validation error
- Output shorter than 50% of input rejected to prevent silent deletion — error returned
- Network timeout on model-based judgments for names/addresses
- Malformed JSON request body — 400 error

## How this service works

Replace personal data in text with typed placeholders. Emails, phone numbers, cards, IBANs and IP addresses are matched by exact pattern and never left to the model - the deterministic cases cannot be missed. Names, addresses and ids are judged by a model, and output shorter than half the input is rejected, so redaction never silently deletes text. The method is returned with the result.

## Output

A JSON object containing the redacted output text with PII replaced by typed placeholders (e.g. [EMAIL_1], [PHONE_1], [PERSON_1]), the method used for redaction, the number of units consumed, and whether the result was cached. Output shorter than half the input length is rejected to prevent silent text deletion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8000
  },
  "kinds": {
   "type": "array",
   "items": {
    "enum": [
     "email",
     "phone",
     "person",
     "address",
     "card",
     "id",
     "iban",
     "ip"
    ],
    "type": "string"
   },
   "description": "What to remove. Defaults to all of: email, phone, person, address, card, id, iban, ip."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "units": 1,
  "cached": false,
  "output": {}
 }
}
```

## More

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