# Toll402 UK Postcode Validator

> Toll402 UK Postcode Validator is a paid API for AI agents from toll402.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates whether a given UK postcode is correctly formatted and recognized

## Facts

- Endpoint: POST https://toll402.dev/v1/t/uk_postcode_validate
- 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/toll402-uk-postcode-validator-a378fe0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Blc6ed3dgBu70miK3bzuj

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 toll402-uk-postcode-validator-a378fe0c -d '<json body>'
```

Example prompt: Can you check whether 'SW1A 1AA' is a valid UK postcode?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call UK postcode validation with no signup or API key required, especially in agent workflows using x402/USDC micropayments on Base. Ideal for one-off validation checks embedded in automated pipelines.

## Known failure modes

- Malformed or missing postcode field returns an error response
- Non-UK postcodes may return ok:false or an error
- Payment failure via x402 protocol prevents the call from completing
- Postcode with unusual spacing or casing may behave unexpectedly depending on normalization

## How this service works

The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.

## Output

Returns a JSON object with an 'ok' boolean field indicating whether the supplied UK postcode is valid (true) or invalid (false).

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "postcode": {
       "type": "string",
       "description": "UK postcode to validate, e.g. 'SW1A 1AA'"
      }
     },
     "required": [
      "postcode"
     ],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-uk-postcode-validator-a378fe0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
