# Agent402 UK Postcode Format Normalizer

> Agent402 UK Postcode Format Normalizer is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Validates and normalizes a UK postcode string into standard outward+inward format (e.g. 'SW1A 1AA'), confirming structural correctness without geo lookup.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/validate/uk-postcode
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-postcode-format-normalizer-04d27a65
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I6n5LQt6tt_QgnfjaIbNv

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-postcode-format-normalizer-04d27a65 -d '<json body>'
```

Example prompt: Can you normalize this UK postcode 'sw1a1aa' into the correct standard format and tell me if it's structurally valid?

## When to prefer this

Use this endpoint when you need lightweight, fast structural validation and normalization of a UK postcode string — before passing it to a geo lookup, storing in a database, or presenting to a user. It does not perform geographic resolution; for lat/lon or delivery zone data use GET /v1/data/uk/postcode instead. Ideal for form validation pipelines, address sanitization, and data cleaning workflows where you only need format correctness confirmed.

## Known failure modes

- Input postcode is completely unparseable — may return valid_format: false with no formatted output
- Non-UK postal formats (e.g. US ZIP codes) will fail structural validation
- Missing or empty postcode field returns validation error
- Ambiguous alphanumeric strings that partially resemble postcodes may return false negatives

## 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 'formatted' (the postcode in canonical 'OUTWARD INWARD' spacing, e.g. 'SW1A 1AA') and 'valid_format' (boolean indicating whether the input matches a valid UK postcode structure). Does not include geographic or delivery data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "postcode": {
   "type": "string",
   "description": "UK postcode"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "formatted": "SW1A 1AA",
  "valid_format": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-postcode-format-normalizer-04d27a65/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)
