{
  "openapi": "3.1.0",
  "info": {
    "title": "Agent Economy OS 2047 — agent-to-agent services",
    "version": "0.2.0",
    "description": "Complete paid request schemas and payment quotes copied from each deployed service OpenAPI specification. Two PayAPI canaries ($0.01 full receipt and $0.10 Passport) have independently confirmed Base USDC transfers; no recurring organic customers proved."
  },
  "servers": [
    {
      "url": "https://jzallxzbbdtelcpabfgr.supabase.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "x402": {
        "type": "apiKey",
        "in": "header",
        "name": "PAYMENT-SIGNATURE",
        "description": "x402 v2 buyer-signed payment; independent wallet and owner budget required"
      }
    }
  },
  "paths": {
    "/functions/v1/agent-usdc-receipt-lite/api/v1/receipt": {
      "get": {
        "operationId": "base_usdc_transfer_evidence_lite",
        "summary": "Base USDC Transfer Evidence Lite",
        "description": "Low-cost real Base USDC receipt and confirmation verification, with 2-of-3 public RPC agreement. Price: 0.005 USDC x402 v2. Sample is public and unrelated to seller; paid response is an RPC observation, not a cryptographic proof or proof of any other transaction. Use free demo before signing; OpenAPI sample data are not verified merchant revenue.",
        "externalDocs": {
          "url": "https://jzallxzbbdtelcpabfgr.supabase.co/functions/v1/agent-usdc-receipt-lite/openapi.json"
        },
        "parameters": [
          {
            "name": "tx",
            "in": "query",
            "required": false,
            "description": "Omit to request a labelled public sample receipt after successful payment; include tx to check your own Base transaction.",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{64}$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_usdc",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_confirmations",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 12
            }
          }
        ],
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005"
          },
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "recipient": "0x935ad91b70c6d0769871416c5904d06fbf9ef586"
        },
        "responses": {
          "200": {
            "description": "Report after successful settlement; paid end-to-end not independently verified."
          },
          "400": {
            "description": "Invalid input. Use documented query parameters or JSON requestBody."
          },
          "402": {
            "description": "x402 payment required; inspect PAYMENT-REQUIRED header before any signature."
          }
        },
        "security": [
          {
            "x402": []
          }
        ]
      }
    },
    "/functions/v1/agent-settlement-passport/api/v1/passport": {
      "get": {
        "operationId": "agent_settlement_passport",
        "summary": "Agent Settlement Passport",
        "description": "Machine-readable Base USDC settlement passport: 2-of-3 RPC receipt quorum, pinned payee and minimum amount, confirmations and canonical SHA-256 audit snapshot. Price: 0.10 USDC x402 v2. Public beta: digest not signed by independent oracle, SHA-256 of snapshot content only; RPC quorum is not cryptographic state proof, merchant identity or wallet authorization; one $0.10 USDC mainnet canary settled by independent PayAPI Market operator on 2026-10-13; not repeat organic demand. Use free demo before signing; OpenAPI sample data are not verified merchant revenue.",
        "externalDocs": {
          "url": "https://jzallxzbbdtelcpabfgr.supabase.co/functions/v1/agent-settlement-passport/openapi.json"
        },
        "responses": {
          "200": {
            "description": "Report after successful settlement; paid end-to-end not independently verified."
          },
          "400": {
            "description": "Invalid input. Use documented query parameters or JSON requestBody."
          },
          "402": {
            "description": "x402 payment required; inspect PAYMENT-REQUIRED header before any signature."
          }
        },
        "security": [
          {
            "x402": []
          }
        ]
      }
    },
    "/functions/v1/agent-usdc-receipt/api/v1/receipt": {
      "get": {
        "operationId": "base_usdc_transfer_evidence",
        "summary": "Base USDC Transfer Evidence",
        "description": "2-of-3 Base RPC agreement on transaction receipt, USDC transfers, confirmations and recipient. Price: 0.01 USDC x402 v2. RPC quorum evidence only; not a cryptographic state proof or merchant revenue proof. Use free demo before signing; OpenAPI sample data are not verified merchant revenue.",
        "externalDocs": {
          "url": "https://jzallxzbbdtelcpabfgr.supabase.co/functions/v1/agent-usdc-receipt/openapi.json"
        },
        "parameters": [
          {
            "name": "tx",
            "in": "query",
            "required": false,
            "description": "Omit to request a labelled public sample receipt after successful payment; include tx to check your own Base transaction.",
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{64}$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_usdc",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_confirmations",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 12
            }
          }
        ],
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "recipient": "0x935ad91b70c6d0769871416c5904d06fbf9ef586"
        },
        "responses": {
          "200": {
            "description": "Report after successful settlement; paid end-to-end not independently verified."
          },
          "400": {
            "description": "Invalid input. Use documented query parameters or JSON requestBody."
          },
          "402": {
            "description": "x402 payment required; inspect PAYMENT-REQUIRED header before any signature."
          }
        },
        "security": [
          {
            "x402": []
          }
        ]
      }
    },
    "/functions/v1/agent-economy-commerce/api/v1/agent-purchase-policy-check": {
      "post": {
        "operationId": "agent_purchase_policy_check",
        "summary": "Agent Purchase Policy Check",
        "description": "Advisory pre-action domain allowlist, per-action cost limit and human-review threshold. Price: 0.10 USDC x402 v2. Caller-supplied rules; no actual purchase execution or merchant safety validation. Use free demo before signing; OpenAPI sample data are not verified merchant revenue.",
        "externalDocs": {
          "url": "https://jzallxzbbdtelcpabfgr.supabase.co/functions/v1/agent-economy-commerce/openapi.json"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "task_id",
                  "action",
                  "policy"
                ],
                "additionalProperties": false,
                "properties": {
                  "task_id": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "action": {
                    "type": "object",
                    "required": [
                      "kind",
                      "target_url",
                      "estimated_cost_usdc"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "purchase",
                          "api_call",
                          "data_export"
                        ]
                      },
                      "target_url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "estimated_cost_usdc": {
                        "type": "string",
                        "pattern": "^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$"
                      }
                    }
                  },
                  "policy": {
                    "type": "object",
                    "required": [
                      "allowed_kinds",
                      "allowed_domains",
                      "max_cost_usdc",
                      "require_evidence"
                    ],
                    "properties": {
                      "allowed_kinds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "purchase",
                            "api_call",
                            "data_export"
                          ]
                        }
                      },
                      "allowed_domains": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "max_cost_usdc": {
                        "type": "string"
                      },
                      "review_above_usdc": {
                        "type": "string"
                      },
                      "require_evidence": {
                        "type": "boolean"
                      }
                    }
                  },
                  "evidence": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^sha256:[a-f0-9]{64}$"
                    }
                  }
                }
              },
              "example": {
                "task_id": "agent-demo-1",
                "action": {
                  "kind": "purchase",
                  "target_url": "https://example.com/cart",
                  "estimated_cost_usdc": "9.99"
                },
                "policy": {
                  "allowed_kinds": [
                    "purchase"
                  ],
                  "allowed_domains": [
                    "example.com"
                  ],
                  "max_cost_usdc": "10.00",
                  "review_above_usdc": "5.00",
                  "require_evidence": false
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.10"
          },
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "recipient": "0x935ad91b70c6d0769871416c5904d06fbf9ef586"
        },
        "responses": {
          "200": {
            "description": "Report after successful settlement; paid end-to-end not independently verified."
          },
          "400": {
            "description": "Invalid input. Use documented query parameters or JSON requestBody."
          },
          "402": {
            "description": "x402 payment required; inspect PAYMENT-REQUIRED header before any signature."
          }
        },
        "security": [
          {
            "x402": []
          }
        ]
      }
    },
    "/functions/v1/agent-treasury-guardian/v1/paid/reserve": {
      "post": {
        "operationId": "agent_treasury_guardian",
        "summary": "Agent Treasury Guardian 2047",
        "description": "Atomic shared budget reservations for cooperating AI agents, approved payees, quote consistency, replay/idempotency protection. Price: 0.05 USDC x402 v2. Cross-agent reservations and spending reports are advisory, not wallet enforcement, owner mandate verification, chain settlement proof or custody. Paid settlement end-to-end unverified. Use free demo before signing; OpenAPI sample data are not verified merchant revenue.",
        "externalDocs": {
          "url": "https://jzallxzbbdtelcpabfgr.supabase.co/functions/v1/agent-treasury-guardian/openapi.json"
        },
        "responses": {
          "200": {
            "description": "Report after successful settlement; paid end-to-end not independently verified."
          },
          "400": {
            "description": "Invalid input. Use documented query parameters or JSON requestBody."
          },
          "402": {
            "description": "x402 payment required; inspect PAYMENT-REQUIRED header before any signature."
          }
        },
        "security": [
          {
            "x402": []
          }
        ]
      }
    },
    "/functions/v1/agent-owner-policy/api/v1/evaluate": {
      "post": {
        "operationId": "owner_signed_spending_policy",
        "summary": "Owner-Signed Spending Policy",
        "description": "Verify a wallet's EIP-191 signature on owner policy rules before checking an agent action. Price: 0.25 USDC x402 v2. Buyer must independently establish trusted owner wallet; no aggregate budget or transaction enforcement. Use free demo before signing; OpenAPI sample data are not verified merchant revenue.",
        "externalDocs": {
          "url": "https://jzallxzbbdtelcpabfgr.supabase.co/functions/v1/agent-owner-policy/openapi.json"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "policy",
                  "owner_signature",
                  "action",
                  "expected_owner_address"
                ],
                "properties": {
                  "policy": {
                    "type": "object"
                  },
                  "owner_signature": {
                    "type": "string"
                  },
                  "action": {
                    "type": "object"
                  },
                  "expected_owner_address": {
                    "type": "string"
                  }
                }
              },
              "example": {
                "policy": {
                  "owner_address": "0x7263B4D437c6b9d2d0a196C0A6aCd83EE9a32e54",
                  "allowed_kinds": [
                    "purchase"
                  ],
                  "allowed_domains": [
                    "example.com"
                  ],
                  "max_per_action_usdc": "10.00",
                  "review_above_usdc": "5.00",
                  "valid_until": 1796947917
                },
                "owner_signature": "0x8f865152a862201f6cb1095be832cf9c338253cdbbbb5c9526540ce5326d48273fceb7e3f78de8d6527732d925904371f22cdb060551ebcde6fd0c438a75896c1c",
                "action": {
                  "kind": "purchase",
                  "target_url": "https://example.com/cart",
                  "estimated_cost_usdc": "3.00"
                },
                "expected_owner_address": "0x7263B4D437c6b9d2d0a196C0A6aCd83EE9a32e54"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Report after successful settlement; paid end-to-end not independently verified."
          },
          "400": {
            "description": "Invalid input. Use documented query parameters or JSON requestBody."
          },
          "402": {
            "description": "x402 payment required; inspect PAYMENT-REQUIRED header before any signature."
          }
        },
        "security": [
          {
            "x402": []
          }
        ]
      }
    }
  }
}