{
  "openapi": "3.1.0",
  "info": {
    "title": "Trust API",
    "version": "1.0.0",
    "description": "Trust verdict + paid search + seller lookup for x402 services. Trust verdict on a service URL, paid search across x402 service catalog, and seller lookup by payout address.",
    "x-guidance": "Use GET /api/trust?resource=<url> for trust verdict on a service. Use GET /api/paid-search?q=<query> for paid search. Use GET /api/seller?payTo=<address> for seller lookup.",
    "contact": {
      "email": "dev@desk.node01.org"
    }
  },
  "paths": {
    "/api/trust": {
      "get": {
        "operationId": "trust",
        "summary": "Trust verdict on a service URL",
        "tags": [
          "Trust"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "resource",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Service URL to evaluate"
          }
        ],
        "responses": {
          "200": {
            "description": "Trust verdict"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/api/paid-search": {
      "get": {
        "operationId": "paid-search",
        "summary": "Paid search across x402 service catalog",
        "tags": [
          "Search"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.002"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Search query"
          }
        ],
        "responses": {
          "200": {
            "description": "Search results"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/api/seller": {
      "get": {
        "operationId": "seller",
        "summary": "Services by seller payout address",
        "tags": [
          "Seller"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "payTo",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Payout address"
          }
        ],
        "responses": {
          "200": {
            "description": "Seller services"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "operationId": "health",
        "summary": "Health check",
        "tags": [
          "Health"
        ],
        "responses": {
          "200": {
            "description": "Service health"
          }
        },
        "security": []
      }
    }
  }
}