API Documentation
Complete reference for The Architect platform API. All endpoints return structured JSON. Authentication is required for write operations. Read endpoints are publicly accessible.
https://quantumqub.comFormat: JSONAuth: Session cookie / Bearer tokenData Providers
The platform aggregates data from multiple verified public sources. Scores are computed transparently — never invented.
13 macro indicators (GDP, population, inflation, education, trade, energy)
Real-time macro summary, trade flows, government spending, economic calendar
Geographic entities — countries, cities, councils, coordinates, populations
Official UK company registry data, directors, filings
US public company filings, 10-K, 10-Q, annual reports
Global corporate data aggregation from 140+ jurisdictions
Country Scoring Formula
Every country score is computed from real World Bank data using this transparent formula:
GDP per capita, unemployment rate, trade openness
Life expectancy, education enrollment, internet access, poverty rate
Military spending, battle deaths, GINI inequality
Renewable energy %, food production, CO₂ per capita
Formula: Score = 0.30 × EconomicVelocity + 0.30 × SocietalWellness + 0.25 × GeopoliticalStability + 0.15 × ResourceAutonomy
Country & Geography
Access country scores, geographic data, and governance metrics for every nation.
/api/v2/geo/open-country-scoreCompute or retrieve a country's governance score from World Bank data. Uses 13 indicators across 4 pillars.
/api/v2/geo/prism-countryFetch macro-economic data from PrismAPI: GDP, inflation, trade, government spending, economic calendar.
/api/v2/geoList all countries, continents, and geographic zones with their current scores.
/api/v2/scores/country/{code}Full score ledger: formula, latest snapshot, all sources, facts, and computed metrics.
Enterprise & Companies
Register, query, and analyze enterprise entities. Includes financial data, governance scores, and transparency reports.
/api/v2/enterpriseList all registered enterprises with scores, financials, and metadata.
/api/v2/enterprise/{slug}Full enterprise profile including governance score, financial summary, and source attribution.
/api/v2/enterprise/{slug}/financialsFinancial metrics: revenue, costs, assets, debt, and fiscal year data.
/api/v2/enterprise/registerRegister a new enterprise entity from official company registry data.
/api/v2/enterprise/{slug}/sourcesAll verified data sources contributing to this enterprise's score.
/api/v2/enterprise/{slug}/score/recomputeTrigger a re-computation of the enterprise governance score.
AI & Security
Deep Prompt Inspection (DPI) powered by Veea Lobster Trap technology. Every AI interaction is inspected for threats.
/api/ai/dpi/inspectRun DPI inspection on any text. Returns risk score, matched rules, detected intent, and action (ALLOW/DENY/LOG).
/api/ai/dpi/inspectGet all DPI rules, compliance packs, and engine configuration.
/api/ai/dpi/historyRetrieve audit trail of all DPI inspections with full metadata.
/api/ai/assistantAI governance assistant powered by Google Gemini. Analyzes data and provides structured insights.
Governance & Voting
Council claims, institutional membership, voting, and democratic governance workflows.
/api/v2/governance/claimsClaim a governance position (council, minister, presidency). Requires authentication.
/api/v2/governance/joinRequest to join a council or institution as a member.
/api/v2/govledger/transactionsBrowse the governance ledger — all recorded governance actions and decisions.
/api/v2/votingCast a vote on an active proposal or governance motion.
Scoring Engine
The transparent scoring system. Every score traces back to verifiable sources. No data is invented.
/api/v2/scores/{subjectType}/{subjectId}Get complete score breakdown for any entity (country, enterprise, citizen).
/api/v2/statsPlatform-wide statistics: total entities, average scores, data freshness.
/api/v2/open-dataList all open data sources used by the platform with trust tiers and registration requirements.
Authentication & Identity
eID-based authentication, WebAuthn passkeys, biometric verification, and KYC integration.
/api/auth/sessionGet current authenticated session details.
/api/v2/auth/passkey/register/optionsStart WebAuthn/passkey registration flow.
/api/v2/auth/eid/startInitiate European eID authentication via OIDC.
/api/v2/kyc/didit/startStart KYC verification via Didit provider.
Authentication
Read endpoints — Most GET endpoints are publicly accessible without authentication. They return real, verifiable data from public sources.
Write endpoints — POST/PUT/DELETE operations require authentication via session cookie (web) or API key (programmatic access).
Supported auth methods:
- European eID (via OIDC providers — 27 EU member states)
- WebAuthn passkeys (hardware security keys, biometric)
- Biometric verification (face/fingerprint via Didit KYC)
- Traditional email + password (with mandatory 2FA)