> ## Documentation Index
> Fetch the complete documentation index at: https://docs.limitguard.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Trust Architecture

> Zero-access model, data flow, and security architecture

**Don't trust us. Verify us.**

That is the operating philosophy behind every architectural decision at Limitguard. We check leads and companies against official registers, so every claim we make about ourselves should be checkable too. This document explains exactly how the system is built, what data it touches, where it lives, and how you can confirm every claim we make.

> [!NOTE]
>
> Limitguard publishes its own trust signals at `GET /v1/self-verify`: public, free, no key needed. Every signal links to evidence you can check yourself, starting with the Dutch business register (KVK) entry of the company that operates Limitguard.

***

## Zero-Access Trust Model

Limitguard is built on a zero-access principle: we minimize what we store, we make what we do store auditable, and we give you the tools to verify us independently.

> [card] Data Minimisation
>
> Only the fields you submit are processed. Check records are kept for 365 days, the audit log stores one-way hashes of entity identifiers, and `GET /v1/data/retention` lists every retention period.

> [card] EU Data Residency
>
> Application data is stored in the EU. Limitguard is operated by Ambulatio Consulting B.V. (trading as Limitguard), a Dutch company registered with the KVK under 77272471.

> [card] Self-Verifying
>
> Limitguard verifies itself with its own API. The result is public at `GET /v1/self-verify`, and each signal carries a link to its evidence.

> [card] Hash Chain Audit Trail
>
> Every verification event is recorded in a tamper-evident hash chain. No entry can be modified without breaking the chain.

> [card] Certificate Records
>
> Trust certificates are API records issued and verified via `/v1/certificate/*`, not written to any blockchain or contract. Limitguard's only on-chain footprint is its own ERC-8004 agent identity (agent 95545 on Base).

> [card] Security Transparency
>
> Responsible disclosure via RFC 9116. Our `/.well-known/security.txt` is public. The security mailbox is hosted on Proton Mail.

***

## Data Flow

A single `POST /v1/entity/check` request moves through the following stages. Every data source the request's identifiers allow is queried in **parallel**, not sequentially, which is why median response time is under 500ms.

```mermaid theme={null}
flowchart TD
    A([Client Request]) --> B[Logging Middleware]
    B --> C[Sandbox Detection]
    C --> D[Rate Limiter]
    D --> E[x402 Payment Verification]
    E --> F[Tenant Isolation]
    F --> G[Request Size Limit]
    G --> H[Security Headers]
    H --> J[Router]

    J --> K[Fan-out: Parallel Checks]

    K --> L1[KVK / KBO Registry]
    K --> L2[OpenSanctions]
    K --> L3[Country Risk]
    K --> L4[Domain Intelligence]
    K --> L5[IBAN Validation]
    K --> L6[VAT / VIES]
    K --> L7[Wallet Format Check]
    L1 & L2 & L3 & L4 & L5 & L6 & L7 --> M[Trust Score Engine]

    M --> N[Weighted Scoring]
    N --> O[Cluster Classification]
    O --> P[Recommendation Engine]
    P --> Q[Audit Trail Writer]
    Q --> R([Signed Response])
```

> [!NOTE]
>
> The middleware chain runs top-to-bottom on every request. Sandbox detection fires **before** rate limiting and payment verification, so a sandbox key is recognized first and pays nothing on the endpoints the sandbox covers. See [Sandbox Mode](https://docs.limitguard.ai/sandbox.md) for details.

***

## Middleware Security Stack

Every request passes through these main middleware layers before reaching the router. Order is fixed and cannot be bypassed. A few smaller layers (CORS, tracing, host checks) are left out here.

| Position | Middleware | Purpose |
| - | - | - |
| 1 | **Logging** | Structured request logging with correlation IDs |
| 2 | **Sandbox** | Detects a sandbox key by its prefix and applies the sandbox limit of 10 requests per minute per IP. Answers its own 429 |
| 3 | **Rate Limiter** | Per-IP and per-key sliding window limits |
| 4 | **x402 Payment** | Verifies EIP-3009 signature or checks API key tier. A sandbox request on a path with a sandbox mock skips payment |
| 5 | **Tenant Isolation** | Scopes the request to the tenant context of its API key |
| 6 | **Request Size Limit** | Blocks oversized payloads before parsing |
| 7 | **Security Headers** | HSTS, CSP, X-Frame-Options, X-Content-Type-Options |
| 8 | **Router** | Dispatches to endpoint handler |

```
Request → Logging → Sandbox → Rate Limit → x402 Payment
        → Tenant Isolation → Request Size Limit → Security Headers → Router
```

> [!TIP]
>
> Security headers are set at the middleware layer, not the application layer. This ensures they are present on every response a handler sends, including errors and health checks, regardless of which handler processes the request.

***

## The Data Sources

Limitguard queries these independent data sources in parallel, as far as the identifiers in the request allow. No single source determines the outcome: the trust score is a weighted composite across all available signals.

> [card] 1. KVK / KBO Registry
>
> **Dutch Chamber of Commerce (KVK) and the Belgian KBO/CBE (Crossroads Bank for Enterprises) business registers.**
>
> Verifies legal registration status, company age, registered address, SBI/NACE activity codes, and filing history. An active registration with multi-year history is a strong positive signal. Shell companies and recently dissolved entities are flagged.

> [card] 2. OpenSanctions
>
> **80+ global sanctions and watchlist sources.**
>
> Checks against OFAC (US), EU consolidated list, UN Security Council, UK OFSI, and dozens of national and regional lists. OpenSanctions is the industry-standard open-source sanctions dataset, updated daily.

> [card] 3. Country Risk
>
> **CPI (Corruption Perceptions Index) + FATF grey and blacklist.**
>
> Jurisdiction risk is evaluated using Transparency International's CPI score and the FATF (Financial Action Task Force) list status. High-risk jurisdictions, particularly FATF blacklisted or greylisted countries, reduce the trust score regardless of other signals.

> [card] 4. Domain Intelligence
>
> **WHOIS registration age, DNS email records and the TLS certificate.**
>
> Domain age is a strong fraud signal: most fraudulent entities use recently registered domains. We also check the MX, SPF and DMARC email records, and connect to the website to check its TLS certificate: it must chain to a trusted certificate authority, match the domain name and not be expired. The issuer is recorded.

> [card] 5. IBAN Validation
>
> **Bank account structure and BIC/SWIFT verification.**
>
> Validates the structural integrity of provided IBANs, and resolves the BIC. Mismatched country codes between the IBAN and the declared entity jurisdiction are flagged.

> [card] 6. VAT / VIES
>
> **EU VAT number validation via the European Commission VIES system.**
>
> Confirms that the provided VAT number is active and registered to the declared entity name. VIES is the authoritative EU source for cross-border VAT verification, used by tax authorities across all 27 member states.

> [card] 7. Wallet Format Check
>
> **Address-format validation for ETH/EVM, BTC, and SOL addresses.**
>
> The entity check only validates that a submitted wallet address is well-formed for its chain (regex match, no lookups). It does not screen against mixer, darknet, or sanctioned-wallet lists, and it is not factored into the trust score. For real wallet screening (OFAC SDN match, on-chain signals, and named risk rules), use the separate wallet screening tool (`verify_wallet` / `POST /v1/mcp/verify-wallet`, \$0.11). The OFAC SDN match alone is free, as a yes/no wallet sanctions check (see Pricing).

### Source Availability by Request

Not every source is queried on every request. Source selection depends on which identifiers are provided and which tier (`cached` or `fresh`) is requested.

| Source | Required Field | Always Queried? |
| - | - | - |
| KVK Registry | `kvk_number` or NL `country` | No: NL only |
| KBO Registry | `cbe_number` | No: BE only |
| OpenSanctions | `entity_name` | Yes |
| Country Risk | `country` | Yes |
| Domain Intelligence | `domain` | When provided |
| IBAN Validation | `iban` | When provided |
| VAT / VIES | `vat_number` | When provided |
| Wallet Format Check | `wallet_address` | When provided |

> [!NOTE]
>
> More identifiers = higher confidence. An entity check that includes a KVK number, domain, VAT number, and IBAN will produce a significantly more accurate score than one submitted with name and country only.

### Sanctions Check Scope

Sanctions screening matches names only. A name match on its own is not proof, and we do not check who ultimately owns a company (no UBO check).

***

## Trust Scoring Methodology

The trust score is not a black box. Every score comes with `top_factors` that explain exactly which signals drove the result, which source produced them, and how much weight they carried.

### Output Fields

```json theme={null}
{
  "trust_score": 87,
  "trust_level": "high",
  "cluster": "established_eu_sme",
  "recommendation": "proceed",
  "confidence": 0.94,
  "top_factors": [
    {
      "source": "sanctions",
      "signal": "No sanctions match found",
      "impact": "positive",
      "weight": 0.30
    },
    {
      "source": "registry",
      "signal": "Verified, active, established business",
      "impact": "positive",
      "weight": 0.30
    },
    {
      "source": "jurisdiction",
      "signal": "Low-risk jurisdiction (CPI: 82)",
      "impact": "positive",
      "weight": 0.20
    },
    {
      "source": "domain",
      "signal": "Established web presence (2412 days)",
      "impact": "positive",
      "weight": 0.10
    }
  ]
}
```

### Score Bands

| Score Range | `trust_level` | `recommendation` | Typical Action |
| - | - | - | - |
| 80 to 100 | `high` | `proceed` | Automated approval |
| 60 to 79 | `medium` | `review` | Human review recommended |
| 40 to 59 | `low` | `enhanced_due_diligence` | Enhanced KYB before proceeding |
| 0 to 39 | `critical` | `block` | Do not transact |

### Entity Clusters

The `cluster` field classifies entities into behavioural archetypes based on signal patterns across all sources. Cluster assignment improves interpretability: a `trust_score` of 72 means different things for an `established_eu_sme` versus a `high_risk_jurisdiction`.

| Cluster | Description |
| - | - |
| `established_eu_enterprise` | Found in the register, older than 5 years, trust score 80 or more |
| `established_eu_sme` | Found in the register, older than 2 years, trust score 60 or more |
| `verified_startup` | Found in the register, under 2 years old: not inherently suspicious |
| `unverified_new` | No register match |
| `high_risk_jurisdiction` | Country is on the FATF black or grey list |
| `sanctions_flagged` | Direct sanctions match: automatic `block` recommendation |
| `insufficient_data` | Fewer than 3 sources answered, or the sanctions check could not run. Not a sanctions match |
| `mixed_signals` | Found in the register, but the signals do not fit another cluster, for example a trust score under 50 |

Wallets are not screened here; use `verify_wallet`.

### Confidence Score

The `confidence` field (0 to 1) reflects how much data was available to produce the score. An entity verified by nearly every source scores `0.96+`. An entity verified with name and country only may score `0.55`.

> [!TIP]
>
> Build confidence thresholds into your integration policy. For example: require `confidence >= 0.80` before automated approval, regardless of the trust score itself.

***

## Infrastructure and Data Residency

### Where Your Data Lives

| Layer | Location |
| - | - |
| API, audit log and cache | European Union |
| Dashboard application | European Union |
| Database: dashboard accounts, workspaces and check records | Ireland |
| CDN and web application firewall | Global edge network |

Limitguard is operated by Ambulatio Consulting B.V. (trading as Limitguard), Breda, the Netherlands, KVK 77272471. The companies that process data for us are listed in section 4 of the [privacy policy](https://limitguard.ai/privacy?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture).

> [!NOTE]
>
> Application data (API requests, check records, audit logs and dashboard accounts) is stored in the EU. The edge network that routes and filters traffic is run by a US company under the EU-US Data Privacy Framework; the [privacy policy](https://limitguard.ai/privacy?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture) names it and describes its role.

### How We Handle Personal Data

Limitguard is hosted in the EU: API and dashboard in the EU, database in Ireland. The [data processing agreement](https://limitguard.ai/dpa?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture) and its sub-processor list (section 6) are published. These are the measures behind it:

**1. Data minimization**

Only the fields you submit are processed. We do not enrich requests with additional personal data beyond what is required for verification.

**2. Limited retention**

Each non-sandbox check is stored with its normalised identifiers (IBANs only as a keyed hash) for 365 days, then deleted. The audit log stores one-way hashes of entity identifiers, never the identifiers themselves. `GET /v1/data/retention` (any API key) lists every data category and its retention period.

**3. Right to erasure (Art. 17)**

GDPR Article 17 right to erasure is supported. Send `DELETE /v1/data/purge` with the `entity_name` (and optionally a `wallet_address`) to erase that entity's records held for your API key, including its check records. Matching audit entries are tombstoned rather than removed, so `GET /v1/audit/verify` can still check the chain.

**4. EU data residency**

Application data is stored in the EU (see the table above). Cloudflare routes traffic under the EU-US Data Privacy Framework.

**5. Legal documents**

The [privacy policy](https://limitguard.ai/privacy?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture), [data processing agreement](https://limitguard.ai/dpa?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture) and [terms of service](https://limitguard.ai/terms?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture) are published on limitguard.ai. The API also serves them at `GET /v1/legal/privacy`, `/v1/legal/dpa` and `/v1/legal/terms`.

***

## Audit Trail and Hash Chain Integrity

Every verification event is recorded in a tamper-evident append-only log. Each entry includes a SHA-256 hash of the previous entry, forming a hash chain that makes retroactive modification detectable.

### How the Chain Works

```mermaid theme={null}
flowchart LR
    A[Entry N-1\nhash: abc123] --> B[Entry N\nprev_hash: abc123\nhash: def456]
    B --> C[Entry N+1\nprev_hash: def456\nhash: ghi789]
    C --> D[Entry N+2\nprev_hash: ghi789\nhash: jkl012]
```

If any historical entry is modified, its hash changes, which breaks every subsequent entry in the chain. The break is immediately detectable by any verifier replaying the chain from the genesis entry.

### Audit Entry Structure

```json theme={null}
{
  "event_id": "7f3c9a1e-...",
  "timestamp": "2026-02-20T09:14:33.421Z",
  "entity_hash": "b94d27b9...",
  "trust_score": 87,
  "trust_level": "high",
  "cluster": "established_eu_sme",
  "recommendation": "proceed",
  "sources_checked": 5,
  "processing_time_ms": 412,
  "previous_hash": "3e4f2a1c...",
  "entry_hash": "9c1b8d0e...",
  "erased_at": "",
  "erasure_request_id": ""
}
```

> [!NOTE]
>
> Audit entries contain **hashes of entity identifiers**, not the identifiers themselves. The entity name, KVK number, and other submitted fields are never stored in the audit log: only a one-way hash that allows correlation without reconstruction.

### Querying the Audit Trail

Both endpoints are scoped to your own API key.

```bash theme={null}
# Your audit entries for one entity (entity_id is the entity_hash), newest first
curl "https://api.limitguard.ai/v1/audit/query?entity_id=b94d27b9...&limit=100" \
  -H "X-API-Key: lg_live_xxxxxxxxxxxxxxxxxxxx"

# Check the hash chain
curl https://api.limitguard.ai/v1/audit/verify \
  -H "X-API-Key: lg_live_xxxxxxxxxxxxxxxxxxxx"
```

```json theme={null}
{
  "chain_valid": true,
  "records_checked": 1824
}
```

`GET /v1/audit/query` also takes `from`, `to` and `offset`, and returns `{"entries": [...], "count", "limit", "offset"}` with each entry in the shape above.

***

## Self-Verification

Limitguard verifies itself using its own API. This endpoint is public, free, and unauthenticated. It returns six published signals about the operator, each with an evidence link, and the score they add up to. The sample below is abridged to five.

```bash theme={null}
curl https://api.limitguard.ai/v1/self-verify
```

```json theme={null}
{
  "entity_name": "Ambulatio Consulting BV (trading as Limitguard)",
  "trust_score": 100,
  "trust_level": "HIGH",
  "verified_at": "2026-09-25T19:06:06Z",
  "signals": [
    {
      "signal_name": "Dutch EU Entity",
      "status": "verified",
      "verifiable": true,
      "evidence_url": "https://www.kvk.nl/zoeken/",
      "description": "Registered Dutch entity (KVK 77272471, Ambulatio Consulting BV)"
    },
    {
      "signal_name": "Open Methodology",
      "status": "verified",
      "verifiable": true,
      "evidence_url": "https://api.limitguard.ai/v1/methodology",
      "description": "Scoring algorithm and weights published publicly"
    },
    {
      "signal_name": "Multi-Source Consensus",
      "status": "verified",
      "verifiable": true,
      "evidence_url": "https://api.limitguard.ai/v1/methodology",
      "description": "Trust scores derived from multiple independent sources"
    },
    {
      "signal_name": "Audit Trail",
      "status": "verified",
      "verifiable": true,
      "evidence_url": "https://api.limitguard.ai/v1/audit/verify",
      "description": "Scored checks are recorded in a tamper-evident, hash-chained audit log; any API key can check the chain"
    },
    {
      "signal_name": "ERC-8004 Identity",
      "status": "verified",
      "verifiable": true,
      "evidence_url": "https://api.limitguard.ai/.well-known/agent-registration.json",
      "description": "Registered as agent 95545 on the ERC-8004 Identity Registry (eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432)"
    }
  ],
  "scoring_methodology_url": "https://api.limitguard.ai/v1/methodology"
}
```

The sixth signal is an EU data-protection signal: it points to the [privacy policy](https://limitguard.ai/privacy?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture) and describes EU hosting, data minimisation and erasure. It describes those measures; it is not a certification.

> [!TIP]
>
> We recommend integrating `/v1/self-verify` into your vendor due diligence workflow. The response is computed on every request, not cached.

***

## Trust Certificates (API Records, Not On-Chain)

Trust certificates are records Limitguard issues, stores, and verifies over its own REST API. They are **not** written to a blockchain, anchored to a contract, or backed by the ERC-8004 standard: nothing about certificate storage or verification touches a chain. The only on-chain element anywhere in Limitguard is its own agent identity: agent `95545` on the [ERC-8004 Identity Registry](https://basescan.org/address/0x8004A169FB4a3325136EB29fA0ceB6D2e539a432) on Base, which is unrelated to certificate issuance.

### How Certificates Work

**1. Certificate requested**

A caller with an admin-role API key sends `POST /v1/certificate/issue` with an entity name, country, and the `trust_score` / `trust_level` to record.

**2. Not derived automatically**

The trust score on a certificate is supplied by the caller in the request; it is not computed or re-verified server-side from a completed `/v1/entity/check`. Issuing and revoking therefore need the admin role: other keys get a 403.

**3. Stored as an API record**

Limitguard holds the certificate in its own store (`certificate_id`, entity name, country, trust score/level, `issued_at`, `expires_at`, and a SHA-256 `certificate_hash` of those fields). Certificates expire based on `valid_days` (default 365) and can be revoked by the admin key that issued them.

**4. Public verification**

Anyone can verify a certificate via `GET /v1/certificate/{certificate_hash}` (public, no auth). There is no separate on-chain copy to cross-check it against; this API response is the record.

### Certificate Fields

| Field | Type | Description |
| - | - | - |
| `certificate_id` | `string` | Unique certificate UUID |
| `entity_name` | `string` | Name of the certified entity |
| `trust_score` | `int` | Score recorded at issuance (0 to 100), as supplied in the issue request |
| `issued_at` / `expires_at` | `datetime` | Issuance timestamp and expiry (`valid_days` after issuance, default 365) |
| `certificate_hash` | `string` | SHA-256 hash of the certificate's content fields |
| `status` | `string` | `active` or `revoked` |

### Querying Certificates

```http theme={null}
# Issue (admin-role API key required)
POST /v1/certificate/issue

# Verify (public, no auth)
GET /v1/certificate/{certificate_hash}

# Revoke (admin-role API key required; tenant-scoped to the issuing key)
POST /v1/certificate/{certificate_hash}/revoke
```

> [!NOTE]
>
> Certificates do expire: `verify_certificate` checks the current time against `expires_at` and marks the certificate invalid once it has passed, alongside `active`/`revoked` status. There is no smart contract to query directly: verification is entirely through the endpoint above, so it depends on Limitguard's own uptime like any other endpoint.

***

## Security Transparency

### RFC 9116 Security Contact

Limitguard publishes a machine-readable security contact per RFC 9116:

```bash theme={null}
curl https://api.limitguard.ai/.well-known/security.txt
```

```
Contact: mailto:security@limitguard.ai
Expires: 2027-09-25T19:07:15.000Z
Preferred-Languages: en, nl
Canonical: https://api.limitguard.ai/.well-known/security.txt
Canonical: https://limitguard.ai/.well-known/security.txt
Policy: https://limitguard.ai/security
```

`Expires` is always one year ahead of the request.

### Encrypted Communications

`security@limitguard.ai` is hosted on **Proton Mail** (Switzerland). Messages from other Proton Mail users are end-to-end encrypted; messages from other providers are encrypted at rest once received.

### Responsible Disclosure

We operate a responsible disclosure programme. Security researchers who identify vulnerabilities in good faith will receive acknowledgement, coordinated disclosure timelines, and credit. See [limitguard.ai/security](https://limitguard.ai/security?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture) for the full programme terms.

***

## Summary: What We Claim vs. How You Verify It

| Claim | How to Verify |
| - | - |
| EU data storage | [Privacy policy](https://limitguard.ai/privacy?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture) and [DPA](https://limitguard.ai/dpa?utm_source=docs\&utm_medium=docs\&utm_campaign=legal\&utm_content=trust_architecture): providers, locations and purposes |
| Dutch operator | KVK register: Ambulatio Consulting B.V. (trading as Limitguard), KVK 77272471 |
| Limited retention | `GET /v1/data/retention`: every data category and its retention period |
| GDPR Art. 17 erasure | `DELETE /v1/data/purge`: functional endpoint, not just a policy |
| Hash chain integrity | `GET /v1/audit/verify` and `GET /v1/audit/query`: check the chain and your own entries |
| Trust certificates | `GET /v1/certificate/{certificate_hash}`: public verification endpoint; the record lives in Limitguard's API, not on a blockchain |
| Self-verifying | `GET /v1/self-verify`: our score, produced by our own API, public |
| Security contact | `GET /.well-known/security.txt`: RFC 9116 compliant |

> [!NOTE]
>
> Every claim in this document is backed by a verifiable endpoint or public record. We built it this way on purpose: we check leads against official registers, so asking you to "just trust us" would miss the point.

***

## Further Reading

> [card] [Self-Verification Methodology](https://api.limitguard.ai/v1/methodology)
>
> Machine-readable JSON: the signals, weights and evidence sources behind `GET /v1/self-verify`

> [card] [x402 Protocol](https://docs.limitguard.ai/x402-protocol.md)
>
> How x402 payment verification works

> [card] [Sandbox Mode](https://docs.limitguard.ai/sandbox.md)
>
> Test the full verification flow without touching real data sources

> [card] [API Reference](https://docs.limitguard.ai/api-reference/introduction.md)
>
> Full endpoint documentation including audit, certificate, and self-verify endpoints


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.