# Agent402 UK Text Firewall

> Agent402 UK Text Firewall is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Scans or redacts PII and secrets from text (logs, prompts, tool I/O) and returns a go/no-go allow flag with findings count

## Facts

- Endpoint: POST https://agent402.co.uk/v1/jobs/text-firewall
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-text-firewall-f1ff7724
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xghuNiodlShkxLTWu301A

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 agent402-uk-text-firewall-f1ff7724 -d '<json body>'
```

Example prompt: Before you send that tool output to the next step, run it through the Agent402 text firewall in redact mode to strip out any PII or secrets — use both pii and secret detection and replace anything found with [REDACTED].

## When to prefer this

Choose this endpoint when you need a fast, cheap, deterministic PII/secrets scan without spending LLM tokens on the task — ideal as a pre-flight check before logging, forwarding, or storing any agent-generated or user-supplied text. Prefer it over LLM-based redaction for cost and consistency; it costs $0.001 USDC per call, requires no API key, and returns a structured allow flag usable in conditional workflow logic.

## Known failure modes

- Text exceeds 100,000 character limit — request rejected
- Invalid mode value (not 'scan' or 'redact') — validation error returned
- Malformed JSON body — 400 error
- Payment not received or USDC balance insufficient on x402 — 402 Payment Required
- Network timeout on large payloads

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

A JSON object with: `allow` (boolean go/no-go), `valid` (boolean), `redacted` (text with sensitive spans replaced by the redaction token), and `finding_count` (integer number of detected items). In scan mode the original text is not altered; in redact mode the redacted field contains the cleaned text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "description": "scan | redact"
  },
  "text": {
   "type": "string",
   "description": "Log, prompt, or tool I/O (max 100k chars)"
  },
  "block": {
   "type": "array",
   "description": "Kinds that force allow=false"
  },
  "include": {
   "type": "array",
   "description": "secret and/or pii (default both)"
  },
  "replacement": {
   "type": "string",
   "description": "Redaction token, default [REDACTED]"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "allow": true,
  "valid": true,
  "redacted": "contact [REDACTED]:email — do not paste keys",
  "finding_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-text-firewall-f1ff7724/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
