RAIA™ Specification

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

← Back to Developer Hub TEXTBOOK SPECIFICATION
RAIA™ (Real estate Artificial Intelligence Agent) Specification

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

🧩 Section A: In Plain English

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.

📘 SECTION 3.14 PROPERTYDATA LAND REGISTRY & VALUATION INTEGRATION
🧩 What this page is about

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

  • 1
    Asset 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.

  • 2
    HM Land Registry Title Audit

    The system calls the PropertyData /land-registry-documents API 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.

  • 3
    GCS 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 to tbl_asset_ownership, and an audit row is created in tbl_pii_access_log.

  • 4
    On-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-sale and /valuation-rent endpoints, 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:

qft || ''}&property_type=${propertyType || ''}`; const response = await fetch(url); const data = await response.json(); // Write Cache await supabase.from('tbl_propertydata_cache').insert({ postcode, endpoint: 'valuation-sale', query_params: { beds, sqft, propertyType }, cached_response: data, expires_at: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000) // 30-day cache }); return data; } }

🛡️ 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.
🔧 Section C: Developer Guide

Architecture Details

The data architecture is built on a layered pipeline model: raw ingestion → transformation → storage → access. Each layer enforces schema validation, data quality checks, and audit trails. The system uses PostgreSQL (Supabase) as the primary datastore with Redis for caching and S3-compatible storage for blobs.

  • Core Component: Data pipeline engine with ETL orchestration
  • Data Flow: Source → Ingestion → Validation → Transformation → Storage → Query
  • Integration Points: Supabase PostgreSQL, Redis cache, S3 blob storage, event bus

Configuration Reference

Key configuration parameters for this system:

Parameter Type Default Description
batch_size integer 1000 Number of records per batch operation
schema_version string v1 Target schema version for data transformation
retention_days integer 90 Data retention period in days
DATA PIPELINE — INGEST → TRANSFORM → STORE → ACCESS 1. INGESTION Raw Data Collection Schema Validation 📥 Ingest 2. TRANSFORMATION ETL Processing Enrichment & Cleanup 🔄 Transform 3. STORAGE & ACCESS PostgreSQL / Cache Query & API Layer 🗄️ Store & Serve Data pipeline: ingest → validate → transform → store → serve with audit trails at every stage Batch processing · Schema validation · Data quality checks · Retention policies Ingestion / Collection Transformation / ETL Storage / Query / Access Data flow →

Figure 2: Data pipeline architecture — component interaction and data flow.

Troubleshooting

Issue Cause Resolution
Schema migration conflicts Concurrent DDL operations on shared tables Use migration scripts with 'IF NOT EXISTS' guards
Slow query performance Missing index on join columns Add composite indexes for common query patterns
Repo Reference RAIA

This component is part of the RAIA (Real estate Artificial Intelligence Agent) platform mono-repo. Implementation details, API contracts, and integration tests are available in the repository.