# Agent402 UK Secret Scanner

> Agent402 UK Secret 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-14).

Scans text, source code, env dumps, or logs for leaked secrets and sensitive credentials, returning counts and severity flags.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/validate/secret-scan
- 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-secret-scanner-7da998f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0jk8tkSR3BUsESqDmoCEZ

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-secret-scanner-7da998f4 -d '<json body>'
```

Example prompt: Before I send this environment dump to the next step, can you scan it for any leaked API keys, passwords, or secrets so I know it's safe to pass along?

## When to prefer this

Choose this endpoint when you need a fast, deterministic, zero-LLM-token secret and credential scan before passing text through pipelines, sending data to external services, or committing code. It is cheaper and more reliable than asking an LLM to spot secrets. It requires no API key, pays $0.001 USDC per call via x402 on Base, and returns structured flags an agent can act on programmatically.

## Known failure modes

- Text exceeds 100k character limit — request rejected
- Malformed or missing `text` field returns a validation error
- Payment failure via x402 results in 402 response before scan is performed
- Network timeout on very large payloads near the size limit

## 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: `valid` (boolean indicating scan success), `has_critical` (boolean for critical severity findings), `secret_count` (number of distinct secrets found), and `finding_count` (total number of individual findings detected).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Source, env dump, or log (max 100k)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "has_critical": false,
  "secret_count": 0,
  "finding_count": 0
 }
}
```

## More

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