{
  "x402Version": 2,
  "name": "402Check",
  "description": "Production-readiness audit for x402 payment endpoints. Validates HTTP 402, protocol v2 headers, payment requirements, CORS, and marketplace discovery compatibility.",
  "ownershipProofs": [
    "0x94269cac87646f7cE6B3D4B4f661C98929025C72"
  ],
  "resources": [
    {
      "url": "https://agent-json-utility.pablovph.chatgpt.site/v1/audit",
      "method": "POST",
      "description": "Production-readiness audit for x402 payment endpoints. Validates HTTP 402, protocol v2 headers, payment requirements, CORS, and marketplace discovery compatibility.",
      "mimeType": "application/json",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "50000",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0x94269cac87646f7cE6B3D4B4f661C98929025C72",
          "maxTimeoutSeconds": 300,
          "extra": {
            "name": "USD Coin",
            "version": "2"
          }
        }
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "url": "https://example.com/api/paid",
                "method": "GET"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "score": 92,
                "ready": true,
                "summary": "Protocol-ready with one hardening recommendation.",
                "checks": [
                  {
                    "id": "status-402",
                    "passed": true,
                    "message": "Endpoint returns HTTP 402"
                  },
                  {
                    "id": "protocol-v2",
                    "passed": true,
                    "message": "PaymentRequired uses x402 v2"
                  }
                ]
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "POST"
                    ]
                  },
                  "bodyType": {
                    "type": "string",
                    "enum": [
                      "json"
                    ]
                  },
                  "body": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Public HTTPS x402 endpoint to audit"
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "GET",
                          "POST"
                        ],
                        "default": "GET"
                      },
                      "body": {
                        "type": "object",
                        "description": "Optional JSON body for a POST endpoint",
                        "additionalProperties": true
                      }
                    },
                    "required": [
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "type",
                  "method",
                  "bodyType",
                  "body"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object",
                    "properties": {
                      "score": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "ready": {
                        "type": "boolean"
                      },
                      "summary": {
                        "type": "string"
                      },
                      "checks": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "passed": {
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "passed",
                            "message"
                          ]
                        }
                      }
                    },
                    "required": [
                      "score",
                      "ready",
                      "summary",
                      "checks"
                    ]
                  }
                },
                "required": [
                  "type",
                  "example"
                ]
              }
            },
            "required": [
              "input",
              "output"
            ]
          }
        }
      }
    },
    {
      "url": "https://agent-json-utility.pablovph.chatgpt.site/v1/launch-report",
      "method": "POST",
      "description": "Full x402 launch-readiness report for an API origin, including OpenAPI metadata and live route probes.",
      "mimeType": "application/json",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "20000000",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0x94269cac87646f7cE6B3D4B4f661C98929025C72",
          "maxTimeoutSeconds": 300,
          "extra": {
            "name": "USD Coin",
            "version": "2"
          }
        }
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "origin": "https://api.example.com"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "origin": "https://api.example.com",
                "score": 94,
                "ready": true,
                "summary": "Launch-ready: two paid routes passed discovery and runtime probes.",
                "paidRoutes": 2,
                "findings": [
                  {
                    "id": "openapi",
                    "passed": true,
                    "severity": "error",
                    "message": "OpenAPI 3.1 document is public and parseable"
                  }
                ],
                "endpointAudits": [],
                "prioritizedFixes": []
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "POST"
                    ]
                  },
                  "bodyType": {
                    "type": "string",
                    "enum": [
                      "json"
                    ]
                  },
                  "body": {
                    "type": "object",
                    "properties": {
                      "origin": {
                        "type": "string",
                        "format": "uri",
                        "description": "Public HTTPS origin whose OpenAPI and x402 routes should be audited"
                      }
                    },
                    "required": [
                      "origin"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "type",
                  "method",
                  "bodyType",
                  "body"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object",
                    "properties": {
                      "origin": {
                        "type": "string",
                        "format": "uri"
                      },
                      "score": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "ready": {
                        "type": "boolean"
                      },
                      "summary": {
                        "type": "string"
                      },
                      "paidRoutes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "findings": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "passed": {
                              "type": "boolean"
                            },
                            "severity": {
                              "type": "string",
                              "enum": [
                                "error",
                                "warning"
                              ]
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "passed",
                            "severity",
                            "message"
                          ]
                        }
                      },
                      "endpointAudits": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "score": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 100
                            },
                            "ready": {
                              "type": "boolean"
                            },
                            "summary": {
                              "type": "string"
                            },
                            "checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "passed": {
                                    "type": "boolean"
                                  },
                                  "message": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "passed",
                                  "message"
                                ]
                              }
                            }
                          },
                          "required": [
                            "score",
                            "ready",
                            "summary",
                            "checks"
                          ]
                        }
                      },
                      "prioritizedFixes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "origin",
                      "score",
                      "ready",
                      "summary",
                      "paidRoutes",
                      "findings",
                      "endpointAudits",
                      "prioritizedFixes"
                    ]
                  }
                },
                "required": [
                  "type",
                  "example"
                ]
              }
            },
            "required": [
              "input",
              "output"
            ]
          }
        }
      }
    }
  ]
}