{
  "openapi": "3.1.0",
  "info": {
    "title": "x402 Agent-Payment Infrastructure",
    "version": "0.2.0",
    "description": "Discover, quote, invoke, and receipt paid x402 AI/API tools and hosted endpoints."
  },
  "servers": [
    {
      "url": "https://payments.wiselyenterprisesllc.com"
    }
  ],
  "paths": {
    "/ai/manifest": {
      "get": {
        "summary": "Public service manifest",
        "responses": {
          "200": {
            "description": "Service, payment, MCP, endpoint, and receipt metadata."
          }
        }
      }
    },
    "/ai/quote": {
      "post": {
        "summary": "Quote a hosted service",
        "responses": {
          "200": {
            "description": "All-in quote and payment route handoff."
          }
        }
      }
    },
    "/ai/conversion/quote": {
      "post": {
        "summary": "Quote conversion toward required x402 settlement asset",
        "responses": {
          "200": {
            "description": "Route, estimated cost, and wallet/exchange handoff."
          }
        }
      }
    },
    "/x402/quote": {
      "post": {
        "summary": "Quote an external x402 seller",
        "responses": {
          "200": {
            "description": "Normalized third-party payment requirement and conversion handoff."
          }
        }
      }
    },
    "/ai/invoke": {
      "post": {
        "summary": "Invoke a paid hosted AI/API service",
        "responses": {
          "200": {
            "description": "Paid result and receipt."
          },
          "402": {
            "description": "x402 payment required."
          },
          "409": {
            "description": "Streaming required for a long-running service."
          }
        }
      }
    },
    "/ai/endpoints": {
      "get": {
        "summary": "List hosted paid endpoints",
        "responses": {
          "200": {
            "description": "Endpoint catalog."
          }
        }
      }
    },
    "/ai/endpoints/create": {
      "post": {
        "summary": "Create a builder-owned paid endpoint",
        "responses": {
          "200": {
            "description": "Created endpoint metadata."
          },
          "401": {
            "description": "Builder key or admin token required."
          }
        }
      }
    },
    "/tools/{slug}": {
      "get": {
        "summary": "Invoke or inspect a hosted paid endpoint",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Endpoint result."
          },
          "402": {
            "description": "x402 payment required."
          }
        }
      },
      "post": {
        "summary": "Invoke a hosted paid endpoint",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Endpoint result."
          },
          "402": {
            "description": "x402 payment required."
          }
        }
      }
    },
    "/ai/receipts/{receiptId}": {
      "get": {
        "summary": "Fetch a public-safe receipt",
        "parameters": [
          {
            "name": "receiptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Receipt/proof record."
          },
          "404": {
            "description": "Receipt not found."
          }
        }
      }
    },
    "/ai/mcp": {
      "post": {
        "summary": "Streamable HTTP JSON-RPC MCP endpoint",
        "responses": {
          "200": {
            "description": "MCP JSON-RPC response."
          }
        }
      }
    }
  }
}