{
  "openapi": "3.1.0",
  "info": {
    "title": "deadchannel",
    "version": "1.0.0",
    "description": "Use before paying an x402 endpoint you have not used before, when you cannot tell a working seller from a trap, a testnet address dressed as mainnet, or a listing whose price no longer matches its challenge. Returns a verdict — live, degraded, trap, testnet or dead — a 0-100 risk score, and the specific findings behind both, so an agent can decline a bad endpoint instead of learning about it by losing the money. Costs less than the smallest payment it protects.",
    "x-guidance": "Call POST /probe with {\"url\": \"https://some-endpoint.example/paid\"} before paying an x402 endpoint you have not used. It returns a verdict — live, degraded, trap, testnet or dead — a 0-100 risk score, and the specific findings behind both, so an agent can decline a bad endpoint rather than discover it by losing money. Priced at $0.005 in USDC, which is less than the smallest payment it protects. GET /health and GET /facilitator are free and need no payment.",
    "contact": {
      "email": "dreamquayco@gmail.com"
    },
    "license": {
      "name": "MIT",
      "identifier": "MIT"
    }
  },
  "servers": [
    {
      "url": "https://deadchannel.vercel.app"
    }
  ],
  "paths": {
    "/probe": {
      "post": {
        "operationId": "probeEndpoint",
        "summary": "Check whether an x402 endpoint is safe to call",
        "tags": [
          "x402",
          "risk",
          "security",
          "agent-safety"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "description": "Paid via x402 v2. An unpaid request returns 402 with a PAYMENT-REQUIRED header carrying the terms: 0.005 USD in USDC on Base. Settlement runs only after the check produces a result.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "The x402 resource URL to check"
                  },
                  "method": {
                    "type": "string",
                    "description": "HTTP verb the resource expects, if known"
                  },
                  "samples": {
                    "type": "number",
                    "description": "Probes to take, 1-5 (default 2)"
                  }
                },
                "required": [
                  "url"
                ]
              },
              "example": {
                "url": "https://api.example.com/paid-endpoint"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The check ran and the payment settled.",
            "headers": {
              "PAYMENT-RESPONSE": {
                "description": "Base64 SettlementResponse, including the transaction hash.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Verdict"
                },
                "example": {
                  "url": "https://api.example.com/paid-endpoint",
                  "verdict": "degraded",
                  "risk": 25,
                  "priceUsd": 0.01,
                  "latencyMs": {
                    "p50": 180,
                    "p99": 240
                  },
                  "problems": [
                    {
                      "id": "schema-advertised",
                      "status": "warn",
                      "detail": "No input or output schema."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request body is not a valid target."
          },
          "402": {
            "description": "Payment required, or the payment was rejected.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "Base64 PaymentRequired object carrying price, network and payTo.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "The check failed. Nothing was settled, so you were not charged."
          }
        }
      }
    },
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Liveness",
        "security": [],
        "responses": {
          "200": {
            "description": "Alive."
          }
        }
      }
    },
    "/facilitator": {
      "get": {
        "operationId": "facilitatorStatus",
        "summary": "Whether our facilitator credentials are accepted. Moves no money.",
        "security": [],
        "responses": {
          "200": {
            "description": "Ready to settle."
          },
          "503": {
            "description": "Cannot settle."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Verdict": {
        "type": "object",
        "required": [
          "url",
          "verdict",
          "risk",
          "problems"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "live",
              "degraded",
              "trap",
              "testnet",
              "dead",
              "unknown"
            ]
          },
          "risk": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "description": "0 is safe to call, 100 is do not call."
          },
          "priceUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "networks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "latencyMs": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "p50": {
                "type": "integer"
              },
              "p99": {
                "type": "integer"
              }
            }
          },
          "problems": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "warn",
                    "fail"
                  ]
                },
                "detail": {
                  "type": "string"
                }
              }
            }
          },
          "checksPassed": {
            "type": "integer"
          },
          "checksRun": {
            "type": "integer"
          },
          "probedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  },
  "x-x402": {
    "version": 2,
    "price": "0.005 USD",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "network": "eip155:8453",
    "payTo": "0x712c78928080Adb009E31315c0c3c7473dA9648a"
  }
}