{
  "openapi": "3.1.0",
  "info": {
    "title": "AutoSanctions API",
    "description": "Automated OFAC/AML compliance shield for Web3, Luxury Assets, and Cross-Border Trade. Verify entities against the US Treasury sanctions database.",
    "version": "1.0.0",
    "contact": {
      "name": "SB Digital",
      "url": "https://autosanctions.com"
    }
  },
  "servers": [
    {
      "url": "https://autosanctions.com/api/v1"
    }
  ],
  "paths": {
    "/verify-entity": {
      "post": {
        "summary": "Verify Entity for Sanctions",
        "description": "Checks an entity name against the OFAC sanctions database. Requires a cryptographic proof of payment (0.05 USDC) on the Base L2 network.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "entity_name": {
                    "type": "string",
                    "description": "The name of the individual, company, vessel, or aircraft to verify."
                  },
                  "transaction_hash": {
                    "type": "string",
                    "description": "The Base network transaction hash proving the 0.05 USDC transfer to 0x220753EDC7Cdeb2CbFe46f1474F28782b0733620"
                  }
                },
                "required": ["entity_name", "transaction_hash"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verification successful. Returns database match status."
          },
          "402": {
            "description": "Payment Required. The transaction hash is invalid, missing, or the USDC amount is insufficient."
          }
        }
      }
    }
  }
}
