# Agent402 UK PII & Secrets Scanner

> Agent402 UK PII & Secrets Scanner 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-13).

Scans a block of text for personally identifiable information (PII) and secrets, returning counts of findings so agents can gate further actions on privacy/security compliance.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/validate/pii-scan
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-pii-secrets-scanner-63d0c580
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WzCwEyM_tXn2RzRjZEEOr

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-pii-secrets-scanner-63d0c580 -d '<json body>'
```

Example prompt: Before you forward that user message to the payment processor, scan it for any PII or secrets — I need to know if there are names, emails, or credentials hiding in there.

## When to prefer this

Choose this endpoint when you need a cheap, fast, deterministic pre-flight check on text before committing tokens or downstream API calls — especially when compliance, GDPR, or secret-leakage risk is a concern. At $0.001 USDC per call with no API key required and x402 USDC payment on Base, it is ideal for agentic pipelines that need a lightweight privacy firewall without spinning up a full NLP service.

## Known failure modes

- Text exceeding 100k characters may be rejected or truncated
- Network or payment failure returns a 402 or 5xx with no scan result
- Malformed JSON request body returns a 400 error
- Edge-case PII patterns (non-Latin scripts, unusual formats) may produce lower detection accuracy
- Payment not included or insufficient USDC balance causes request rejection

## 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

Returns a JSON object with a 'valid' boolean indicating whether the scan succeeded, 'pii_count' (number of PII findings), 'secret_count' (number of secret/credential findings), and 'finding_count' (total findings). Agents can use these counts as a go/no-go gate before passing text downstream.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to scan (max 100k)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "pii_count": 2,
  "secret_count": 0,
  "finding_count": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-pii-secrets-scanner-63d0c580/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)
