{
  "attribution": {
    "source": "legal.exploreworldai.com",
    "canonical": "https://legal.exploreworldai.com",
    "license": "https://legal.exploreworldai.com/revision",
    "version": "legal-2026-08-25",
    "proof": "sha256:30055196c93cd7facb252704912a2232f10254919079f81e53c747d729e6865c",
    "jurisdiction": "shared",
    "owner": "ExploreWorldAI",
    "terms": "https://legal.exploreworldai.com/om",
    "notice": "Återgivning kräver angiven källa: legal.exploreworldai.com"
  },
  "openapi": "3.1.0",
  "info": {
    "title": "EU/Nordic Legal Reasoning Layer",
    "version": "1.0.0",
    "description": "Deterministic legal reasoning over Swedish, EU, Nordic and US published sources. Every legal statement carries a citation id, a verifiable URL, a content hash and a reading date. Never legal advice."
  },
  "servers": [
    {
      "url": "https://legal.exploreworldai.com/api/public/v1"
    }
  ],
  "paths": {
    "/reason": {
      "post": {
        "operationId": "reason",
        "summary": "Answer a legal question with cited rules, case law and a conclusion.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "question"
                ],
                "properties": {
                  "question": {
                    "type": "string"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "sv",
                      "en",
                      "no",
                      "de"
                    ]
                  },
                  "verify": {
                    "type": "boolean"
                  },
                  "maxCitations": {
                    "type": "integer",
                    "minimum": 3,
                    "maximum": 40
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Cited reasoning chain"
          }
        }
      }
    },
    "/search": {
      "get": {
        "operationId": "searchSources",
        "summary": "Search the legal register literally.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "sv",
                "en",
                "no",
                "de"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching rows"
          }
        }
      }
    },
    "/acts/{slug}": {
      "get": {
        "operationId": "getSwedishAct",
        "summary": "Read one Swedish statute with provenance.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Statute row"
          }
        }
      }
    },
    "/cases/{id}": {
      "get": {
        "operationId": "getCase",
        "summary": "Read one guiding decision with provenance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Case row"
          }
        }
      }
    },
    "/eu-acts/{slug}": {
      "get": {
        "operationId": "getEuAct",
        "summary": "Read one EU act, article level, with CELEX identifiers.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "EU act row"
          }
        }
      }
    },
    "/verify": {
      "get": {
        "operationId": "verifyCitation",
        "summary": "Check that an earlier citation still matches the current build.",
        "parameters": [
          {
            "name": "layer",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "se",
                "praxis",
                "eu",
                "us",
                "finance",
                "answer"
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hash",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verification result"
          }
        }
      }
    },
    "/freshness": {
      "get": {
        "operationId": "freshness",
        "summary": "Reading dates and freshness per legal layer.",
        "responses": {
          "200": {
            "description": "Freshness report"
          }
        }
      }
    }
  },
  "hash": "sha256:30055196c93cd7facb252704912a2232f10254919079f81e53c747d729e6865c",
  "version": "legal-2026-08-25",
  "expires": "2026-09-07T12:00:00.000Z",
  "dependency": {
    "index_version": "legal-2026-08-25+legal-2026-08-25+2026-08-25T10:00:00",
    "content_hash": "sha256:30055196c93cd7facb252704912a2232f10254919079f81e53c747d729e6865c",
    "revalidate_after": "2026-09-07T12:45:04.872Z",
    "max_copy_age_seconds": 3600,
    "policy": "revalidate-required; live-fetch-per-answer; attribution-required; no-derived-index",
    "changelog": "https://legal.exploreworldai.com/api/public/v1/dependency",
    "verify": "https://legal.exploreworldai.com/api/public/v1/verify",
    "stale_copy_invalid": true
  },
  "disclaimer": "Källhänvisning med officiell identifierare. Ingen juridisk rådgivning och inget efterlevnadsbeslut.",
  "usageInfo": "https://legal.exploreworldai.com/citering"
}