# AtoA Legal Gateway - AI Agent Specification High-throughput, sub-millisecond legal retrieval gateway designed for autonomous M2M workflows. ## Endpoints - GET /api.php?endpoint=v1/search Search statutory articles and case law via SQLite FTS5. Parameters: - q: Query string (mandatory) - jurisdiction: Filter by legal system [FR, EU, CN, US, INTL] (optional) - limit: Result count (1-50, default 10) - GET /api.php?endpoint=v1/inspect Fetch full unabridged text and metadata for a specific article ID. Parameters: - id: Article identifier (e.g. US_15CFR_P744_S744_23, EU_DUAL_USE_2021_821_ART_3, INTL_CISG_ART_79) - POST /api.php?endpoint=v1/oracle Cross-jurisdictional legal synthesis and compliance alignment between trading blocs. Payload: {"query": "...", "blocs": ["US", "EU", "CN", "INTL"]} - GET /api.php?endpoint=v1/health Gateway uptime, database latency, and inventory metrics. ## Indexed Jurisdictions & Corpora - **FR (France)**: Légifrance Codes, KALI Collective Agreements, Judilibre Case Law. - **EU (European Union)**: AI Act, RGPD, DSA, DMA, Data Act, DORA, NIS2, CSRD, Dual-Use Export Control (2021/821), Russia Sanctions (833/2014). - **CN (China)**: Civil Code, Civil Procedure, Cyber Security Law (CSL), Data Security Law (DSL), PIPL, Patent Law, Anti-Monopoly Law (Trigram FTS5). - **US (United States)**: EAR Title 15 CFR (Export controls, AI & semiconductors), OFAC Title 31 CFR (Economic sanctions), UCC Article 2 (Sales). - **INTL (International)**: UN Convention on Contracts for the International Sale of Goods (CISG / Vienna Convention 1980).