Documentation
PropertyData acts as our smart digital scout for global real estate. When a landlord lists a property with us, our system automatically calls PropertyData to check who the real owner is directly at the UK
PropertyData acts as our smart digital scout for global real estate. When a landlord lists a property with us, our system automatically calls PropertyData to check who the real owner is directly at the UK
PropertyData Integration — Land Registry & Valuation Feed
PropertyData acts as our smart digital scout for global real estate — automatically checking the Land Registry for verified ownership and providing instant valuation reports for prospective landlords and tenants.
PropertyData acts as our smart digital scout for global real estate. When a landlord lists a property with us, our system automatically calls PropertyData to check who the real owner is directly at the UK Land Registry and downloads an official deed (Proof of Ownership) to our secure vault. It also acts as our instant pricing engine: if a prospective buyer or tenant comes to our website, the AI instantly queries PropertyData to calculate the property's exact sale value, monthly rental potential, and local area stats, outputting a beautiful branded valuation report in under a second.
2. How it works — operational workflow
The PropertyData integration operates across two core pipelines on the RAIA™ (Real estate Artificial Intelligence Agent) platform: **Ownership Verification (Compliance & Security)** and **On-Demand Property Valuation (Acquisition & Retention)**. By using `admin@estateaigents.com` as our canonical developer credential, we maintain complete control over API key provenance, billing subscription limits, and token budgets.
Dual-Track Integration Pipelines
-
1Asset Boarding & UPRN Extraction
When a new property asset is registered in
tbl_assets, the system extracts its Unique Property Reference Number (UPRN) and postcode, flagging it as pending ownership audit. -
2HM Land Registry Title Audit
The system calls the PropertyData
/land-registry-documentsAPI with the UPRN. For an additional £1.00 + VAT fee, the API reads the proprietor's name, property address, and active mortgages directly from the Land Registry title register. -
3GCS Storage & Immutable Ledger Write
The title register PDF is programmatically retrieved from PropertyData's S3 storage, renamed to a secure UUID path, and archived in GCS (
rcf_private/id/{person_id}/title_deed.pdf). The validated owner's name is written totbl_asset_ownership, and an audit row is created intbl_pii_access_log. -
4On-Demand Valuation Report Generation
When a buyer client on Sovereign Pilot Agency.com or a prospect requesting a valuation enters their parameters (postcode, beds, sqft), the system queries the
/valuation-saleand/valuation-rentendpoints, combining market values, yields, and local comparables into a white-label dashboard report.
3. Technical specifications & code reference
To minimize costs, we enforce an aggressive server-side caching proxy in tbl_propertydata_cache. Responses are cached for 30 days. No client-side code is permitted to call PropertyData directly.
TypeScript Proxy Client (services/propertydata.ts)
// projects/raia/03_technology/09_pipelines/services/propertydata.ts
import { supabase } from '../../04_datastores/supabaseClient';
export class PropertyDataClient {
private apiKey: string;
private baseUrl: string;
constructor() {
this.apiKey = process.env.PROPERTY_DATA_API_KEY || '';
this.baseUrl = process.env.PROPERTY_DATA_API_URL || 'https://api.propertydata.co.uk';
}
/**
* Fetch sale valuation and comparable properties
*/
async getSaleValuation(postcode: string, beds: number, sqft?: number, propertyType?: string) {
const cacheKey = `${postcode}_sale_${beds}_${sqft || 0}_${propertyType || 'any'}`;
// Check local database cache
const { data: cached } = await supabase
.from('tbl_propertydata_cache')
.select('*')
.eq('postcode', postcode)
.eq('endpoint', 'valuation-sale')
.eq('query_params->beds', beds)
.single();
if (cached && new Date(cached.expires_at) > new Date()) {
return cached.cached_response;
}
// Live Fetch
const url = `${this.baseUrl}/valuation-sale?key=${this.apiKey}&postcode=${encodeURIComponent(postcode)}&beds=${beds}&sqft=${s
Repository Code
The live codebase implementation for this specification sits within the following repository folder:
🛡️ Red Team Security & Compliance Risk Audit
A comprehensive risk assessment of exposing automated Land Registry queries and valuations:
| Vulnerability | Risk & Attack Vector | Financial/Legal Impact | Mitigation Strategy (Gating) |
|---|---|---|---|
| API Credit Exhaustion & 429 Loops | Uncapped tenant searches on the portal or a looping background cron task query the API repeatedly. | API service interruption for live users; potential overage charges or subscription suspension. | Implement strict Next.js API route-guards with Redis rate-limiters (max 10 requests per user/IP per day). Cache all responses in Postgres for 30 days. |
| Real Cash Leakage (Deed Purchases) | Uncontrolled or automated loops buying Land Registry documents (£1.00 + VAT each) for cold/scraping leads. | Severe direct cash drain (e.g., pulling documents for 10,000 cold leads causes £12,000+ loss). | Strict HITL Gating. Document purchase is strictly disabled for cold leads. Buying is restricted to the Compliance Officer (Darrel Kwong) inside the gated portal, logging each buy to tbl_audit_log. |
| Data Quality & Land Registry Lag | PropertyData DB updates once per month. Extreme recent transactions (completed in last 30 days) may not show up, showing wrong owners. | Wrongful rejection of a legitimate landlord onboarding, causing friction and lost sales commissions. | Display the "Date Last Updated" indicator on the UI. Provide an "Agent Override" button to upload a physical deed manually when recent sales are not yet synced. |
| Tier-2 GDPR PII Disclosure | Proprietor names and mortgage details (bank lender name, loan status) are pulled and displayed on public search/leads endpoints. | Fines from ICO for disclosing sensitive banking/mortgage records without explicit consent. Defamation risks. | Enforce ADR-PII-001. Landowner and mortgage data are categorized as **Tier-2 Private**. Fields are stored encrypted at rest, excluded from public endpoints, and require an active support session with support reason to view. |