{
  "openapi": "3.1.0",
  "info": {
    "title": "Agent Economy OS 2047 — x402 Base USDC Evidence APIs",
    "version": "1.2.0",
    "description": "Machine-purchasable receipt observations with Base native USDC, client wallet authorization, free demos. Experimental beta; no sales or savings guaranteed."
  },
  "servers": [
    {
      "url": "https://jzallxzbbdtelcpabfgr.supabase.co/functions/v1"
    }
  ],
  "paths": {
    "/agent-usdc-receipt-lite/api/v1/receipt": {
      "get": {
        "operationId": "getReceiptLite",
        "tags": [
          "x402",
          "payment evidence"
        ],
        "summary": "Base USDC Transfer Evidence Lite",
        "description": "Observe a Base USDC transaction transfer through multiple independent public RPC endpoints. Advisory output, not proof of fraud, final settlement, or audited performance. This is a priced x402-v2 GET resource. Request with a real transaction hash; no wallet signature is needed to inspect a quote. Do not mistake a quote for revenue.",
        "parameters": [
          {
            "name": "tx",
            "in": "query",
            "required": true,
            "description": "Real Base transaction hash; 0x followed by 64 hex characters",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Buyer-authorized x402 settled response. Output is observational.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing query; not charged."
          },
          "402": {
            "description": "Payment Required; inspect PAYMENT-REQUIRED base64 JSON header for USDC quote and wallet authorization; no money moved until signed payment supplied."
          }
        },
        "x-x402": {
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4C7C32D4f71b54bdA02913",
          "payTo": "0x935ad91b70c6d0769871416c5904d06fbf9ef586",
          "amount": "5000",
          "price_usdc": "0.005",
          "client_authorization_required": true,
          "qa_settlement_verified": false
        }
      }
    },
    "/agent-usdc-receipt/api/v1/receipt": {
      "get": {
        "operationId": "getReceipt",
        "tags": [
          "x402",
          "payment evidence"
        ],
        "summary": "Base USDC Transfer Evidence",
        "description": "Inspect a specific Base native USDC transfer transaction and chain receipt for a wallet-enabled software agent; machine-readable advisory status, not a banking audit. This is a priced x402-v2 GET resource. Request with a real transaction hash; no wallet signature is needed to inspect a quote. Do not mistake a quote for revenue.",
        "parameters": [
          {
            "name": "tx",
            "in": "query",
            "required": true,
            "description": "Real Base transaction hash; 0x followed by 64 hex characters",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Buyer-authorized x402 settled response. Output is observational.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing query; not charged."
          },
          "402": {
            "description": "Payment Required; inspect PAYMENT-REQUIRED base64 JSON header for USDC quote and wallet authorization; no money moved until signed payment supplied."
          }
        },
        "x-x402": {
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4C7C32D4f71b54bdA02913",
          "payTo": "0x935ad91b70c6d0769871416c5904d06fbf9ef586",
          "amount": "10000",
          "price_usdc": "0.01",
          "client_authorization_required": true,
          "qa_settlement_verified": true
        }
      }
    },
    "/agent-settlement-passport/api/v1/passport": {
      "get": {
        "operationId": "getSettlementPassport",
        "tags": [
          "x402",
          "payment evidence"
        ],
        "summary": "Base USDC Settlement Passport",
        "description": "Given transaction hash, expected recipient and minimum USDC, compare evidence across public Base RPC providers and output explicit status and unsupported assumptions. Not cryptographic state proof. This is a priced x402-v2 GET resource. Request with a real transaction hash; no wallet signature is needed to inspect a quote. Do not mistake a quote for revenue.",
        "parameters": [
          {
            "name": "tx",
            "in": "query",
            "required": true,
            "description": "Real Base transaction hash; 0x followed by 64 hex characters",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{64}$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$"
            },
            "description": "Expected Base recipient address"
          },
          {
            "name": "min_usdc",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Minimum native Base USDC expected; must be caller-specified"
          },
          {
            "name": "min_confirmations",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 12
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Buyer-authorized x402 settled response. Output is observational.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing query; not charged."
          },
          "402": {
            "description": "Payment Required; inspect PAYMENT-REQUIRED base64 JSON header for USDC quote and wallet authorization; no money moved until signed payment supplied."
          }
        },
        "x-x402": {
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4C7C32D4f71b54bdA02913",
          "payTo": "0x935ad91b70c6d0769871416c5904d06fbf9ef586",
          "amount": "100000",
          "price_usdc": "0.10",
          "client_authorization_required": true,
          "qa_settlement_verified": false
        }
      }
    },
    "/agent-automated-assessment/report": {
      "post": {
        "operationId": "postAutomatedDuplicateWorkAssessment",
        "tags": [
          "x402",
          "AI agent assessment",
          "machine-generated"
        ],
        "summary": "Generate machine-only duplicate-work report after authorized payment of 750 Base USDC",
        "description": "First POST the same body to /agent-automated-assessment/preflight for free validation. Then use a compliant buyer-authorized x402-v2 client to POST it to /report. Do not upload raw CSV, names or personal records; no assured savings, manual review, refund automation or independent mainnet $750 delivery test.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "schema",
                  "source_kind",
                  "financial_status",
                  "currency",
                  "configuration",
                  "counts",
                  "exclusions",
                  "non_candidate_matching",
                  "amounts",
                  "date_window",
                  "consent"
                ],
                "properties": {
                  "schema": {
                    "type": "string",
                    "const": "agent-economy.reuse-guard.offline-evaluation.v1"
                  },
                  "source_kind": {
                    "type": "string"
                  },
                  "financial_status": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "USD",
                      "EUR",
                      "MAD",
                      "USDC"
                    ]
                  },
                  "configuration": {
                    "type": "object"
                  },
                  "counts": {
                    "type": "object"
                  },
                  "exclusions": {
                    "type": "object"
                  },
                  "non_candidate_matching": {
                    "type": "object"
                  },
                  "amounts": {
                    "type": "object"
                  },
                  "date_window": {
                    "type": "object"
                  },
                  "consent": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Machine-generated JSON + Markdown report after authorized settlement (not independently paid tested)."
          },
          "402": {
            "description": "Payment Required — verify exact terms and obtain owner authorization before paying."
          },
          "422": {
            "description": "Invalid aggregate input; no money charged by preflight."
          }
        },
        "x-x402": {
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4C7C32D4f71b54bdA02913",
          "payTo": "0x935ad91b70c6d0769871416c5904d06fbf9ef586",
          "amount": "750000000",
          "price_usdc": "750.00",
          "client_authorization_required": true,
          "qa_settlement_verified": false
        },
        "x-free-preflight": "https://jzallxzbbdtelcpabfgr.supabase.co/functions/v1/agent-automated-assessment/preflight",
        "x-synthetic-example": "https://jzallxzbbdtelcpabfgr.supabase.co/functions/v1/agent-automated-assessment/sample-report"
      }
    },
    "/agent-automated-assessment/preflight": {
      "post": {
        "operationId": "freeValidateAutomatedAssessment",
        "tags": [
          "free",
          "assessment"
        ],
        "summary": "Validate aggregate input and return free scope/risk summary without charge",
        "requestBody": {
          "$ref": "#/paths/~1agent-automated-assessment~1report/post/requestBody"
        },
        "responses": {
          "200": {
            "description": "Free input validation result; paid false."
          },
          "422": {
            "description": "Validation failure; no payment."
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Free machine discovery and safer buyer instructions",
    "url": "https://agent-economy-english.floot.app/llms.txt"
  }
}