# Agent402 UK — CPF Validator

> Agent402 UK — CPF Validator 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).

Validates a Brazilian CPF tax number by checking format and mod-11 checksum, returning a structured pass/fail result.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/validate/cpf
- 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-cpf-validator-5a6b11da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rlDdP7TzFW2BH4P5pKqje

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-cpf-validator-5a6b11da -d '<json body>'
```

Example prompt: Can you check whether this Brazilian CPF number is valid — '123.456.789-09' — and confirm if the checksum passes?

## When to prefer this

Use this endpoint when you need a fast, deterministic, offline CPF validation with checksum verification before executing a Brazilian payment, onboarding a user, or cleaning data — without burning LLM tokens on rule-based logic. Prefer it over asking an LLM to validate CPF, which is error-prone and wasteful for a fixed algorithm.

## Known failure modes

- Malformed input (non-string or missing 'cpf' field) may return an error or invalid result
- CPFs with all-zero digits pass formatting but fail checksum, returned as invalid
- Network or payment-related failures if USDC payment via x402 is not properly handled
- Edge cases like CPFs with all identical digits (e.g. 111.111.111-11) are algorithmically invalid and should be flagged as such

## 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 (overall validity) and 'valid_checksum' boolean (whether the mod-11 check digit is correct). Allows the agent to gate downstream workflows on confirmed CPF integrity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cpf": {
   "type": "string",
   "description": "CPF, punctuation ok"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "valid_checksum": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-cpf-validator-5a6b11da/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)
