# Agent Guard PII Redactor

> Agent Guard PII Redactor is a paid API for AI agents from agent-guard.annushka1190.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Detects and redacts personally identifiable information (PII) from text, replacing sensitive items like emails and phone numbers with labeled placeholders.

## Facts

- Endpoint: POST https://agent-guard.annushka1190.workers.dev/v1/pii/redact
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-guard-pii-redactor-a4dbdafb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nn1Qmmd4T1dn411ulRaIt

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 agent-guard-pii-redactor-a4dbdafb -d '<json body>'
```

Example prompt: Can you redact any personal information from this text before I store it: 'Please contact John at john.doe@gmail.com or call him at 555-867-5309'?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call PII redaction without managing API keys or subscriptions. It is ideal for AI agents that handle user-submitted text and must comply with privacy regulations before storing or forwarding data. Prefer it over heavyweight NLP pipelines when you only need common PII types like emails and phone numbers removed quickly and cheaply.

## Known failure modes

- Missing or empty 'input' body results in a 400 validation error
- Non-JSON body type causes a parse failure
- Payment not included or insufficient USDC results in a 402 Payment Required response
- Text with highly unusual formatting may result in missed PII detections
- Very long input strings may time out or be truncated

## How this service works

Safety and trust layer for AI agents: PII redaction, scam/phishing text scan, EVM/Solana address validation, IBAN checks, JSON repair, deep on-chain wallet risk scoring, x402 counterparty endpoint reputation checks. Free discovery: /openapi.json, /.well-known/x402, /v1/capabilities, /mcp (tools/list). REST + MCP. Pay with USDC via x402 — no API keys.

## Output

Returns a JSON object with a 'redacted' string where PII has been replaced by labeled placeholders (e.g. [EMAIL], [PHONE]), and a 'counts' object showing how many instances of each PII type were found and replaced.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Free text to redact (JSON body)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-guard-pii-redactor-a4dbdafb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-guard.annushka1190.workers.dev](https://www.zero.xyz/host/agent-guard.annushka1190.workers.dev/llms.txt)
