# Agentics PII Redaction (x402rail.net)

> Agentics PII Redaction (x402rail.net) is a paid API for AI agents from x402rail.net, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Detects and redacts personally identifiable information (PII) from text using one of three modes: remove, mask, or pseudonymize — with a cryptographic attestation of the result.

## Facts

- Endpoint: POST https://x402rail.net/v1/redact
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentics-pii-redaction-x402rail-net-b801c709
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cu0eo_OzQpg2akO5x2KOx

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 agentics-pii-redaction-x402rail-net-b801c709 -d '<json body>'
```

Example prompt: Can you redact the PII from this text using mask mode so emails and phone numbers are partially hidden but still recognizable in format: 'Please contact alice@example.com or call 555-867-0100 to schedule your appointment'?

## When to prefer this

Choose this endpoint when you need not just redacted text but also a verifiable cryptographic proof that redaction occurred — ideal for compliance workflows, audit trails, or any pipeline where downstream consumers need to trust that PII was removed. The pseudonymize mode is particularly useful when stable, consistent tokens are needed across multiple documents. Prefer this over generic regex-based redaction when attestation and detector versioning matter.

## Known failure modes

- Text exceeds maxContentChars limit from GET /v1/policy — returns an error indicating content is too long
- Invalid redactionMode enum value — returns a validation error
- Payment not received or x402 payment header missing/invalid — returns 402 Payment Required
- Malformed JSON body — returns 400 Bad Request
- Service unavailable — returns 5xx error

## How this service works

Correctness-critical services for autonomous AI agents

## Output

Returns a JSON object containing: the redacted version of the input text, an array of detector labels identifying what PII types were found (e.g. 'email', 'phone'), the redaction mode applied, and a cryptographic attestation object (id, hash, algorithm, public key, signature, detector version, timestamp) plus a URL to retrieve the attestation independently.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string",
   "description": "Text to redact. Capped at the published limit (GET /v1/policy -> limits.extract.maxContentChars)."
  },
  "redactionMode": {
   "enum": [
    "remove",
    "mask",
    "pseudonymize"
   ],
   "type": "string",
   "default": "remove",
   "description": "How to replace detected spans: `remove` → `[REDACTED]` (default); `mask` → format-preserving partial masking (e.g. `a***a@e***e.com`, `***-**-6789`); `pseudonymize` → stable keyed tokens (`pii_<16 hex>`)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "redacted": "Contact a***a@e***e.com or call ***-***-0100.",
  "detectors": [
   "email",
   "phone"
  ],
  "attestation": {
   "id": "8f14e45f-ceea-4e2a-9b1a-3c2e6f0a1b2c",
   "hash": "9f2b1c…",
   "algorithm": "ed25519",
   "createdAt": "2026-06-18T12:00:00.000Z",
   "publicKey": "-----BEGIN PUBLIC KEY-----\n…\n-----END PUBLIC KEY-----\n",
   "signature": "MEUCIQ…",
   "detectorVersion": "redact-v1"
  },
  "redactionMode": "mask",
  "attestationUrl": "https://x402rail.net/v1/attest/8f14e45f-ceea-4e2a-9b1a-3c2e6f0a1b2c"
 }
}
```

## More

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