{"uid":"cap_dulXUHWmF1_9w-9W-Uukh","slug":"uk-postcode-validator-1f5d6ada","name":"UK Postcode Validator","description":"Validate a UK postcode and report its normalised form, format validity, and whether it is currently active.","url":"https://postcode-api-production.up.railway.app/lookup/validate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode to validate; spacing and case are normalised, e.g. 'SW1A 1AA'."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sPSvzfzeFszZazUwSl07R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a UK postcode, returning its normalised form, format validity, and active/inactive status","exampleAgentPrompt":"Can you check whether 'SW1A 1AA' is a valid, active UK postcode and give me its normalised form?","exampleUseCases":[{"title":"E-commerce checkout address validation","prompt":"Before we process this order, can you validate that the postcode 'EC1A1BB' the customer entered is a real, active UK postcode and show me its correctly spaced form?"},{"title":"User registration form pre-check","prompt":"A user just signed up with postcode 'wr26nj' — can you verify it's a valid and active UK postcode and return the normalised version so I can store it correctly?"},{"title":"Bulk data cleansing spot-check","prompt":"I've got a record with postcode 'B11  4HQ' — can you tell me if it's properly formatted, valid, and currently active in the UK?"}],"resultDescription":"Returns whether the postcode has a valid UK format, its normalised (correctly spaced and uppercased) form, and whether it is currently active in the Royal Mail postcode database.","failureModes":["Postcode string missing or empty — likely returns validation error or invalid flag","Non-UK postcode submitted — will be flagged as invalid format","Malformed JSON body — returns HTTP 400","Discontinued or terminated postcode — valid format but marked inactive","Network or server error — HTTP 5xx from Railway-hosted service"],"whenToPreferThis":"Use this endpoint when you need to confirm that a user-supplied UK postcode string is correctly formatted AND currently active, without needing full geographic lookup data. It is lighter and faster than a full postcode lookup and is ideal for form validation, data cleansing, or pre-flight checks before enriching an address with coordinates or admin boundaries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:37:33.385Z","isFirstParty":false}