{
  "openapi": "3.1.0",
  "info": {
    "title": "Sui Directory Data",
    "version": "1.0.0",
    "description": "On-chain data about the Sui ecosystem: project search with health scores, risk signals, sunset projects and newly deployed contracts."
  },
  "servers": [
    {
      "url": "https://suidirectory.vercel.app"
    }
  ],
  "paths": {
    "/x402/search": {
      "post": {
        "operationId": "x402_search",
        "summary": "Search Sui projects by keyword and/or category, with health score and risk level.",
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Payment required — the body carries an x402 accepts[] envelope (scheme \"exact\", network sui). Sign it and retry with the X-PAYMENT header."
          },
          "422": {
            "description": "Invalid request body — never charged"
          }
        },
        "x-payment-info": {
          "pricingMode": "fixed",
          "price": "0.01",
          "currency": "USDC",
          "protocols": [
            "mpp",
            "x402"
          ],
          "x402": {
            "scheme": "exact",
            "network": "sui:mainnet",
            "asset": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
            "payTo": "0x5d903be1cfc87762b89c03512d893d7ae9b3c42ddfff01d2b02a4c0bd2d9497b"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Keywords, e.g. 'lending'"
                  },
                  "category": {
                    "type": "string",
                    "description": "e.g. DeFi, Wallets, Infra"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/x402/project": {
      "post": {
        "operationId": "x402_project",
        "summary": "Full public profile of one Sui project by slug.",
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Payment required — the body carries an x402 accepts[] envelope (scheme \"exact\", network sui). Sign it and retry with the X-PAYMENT header."
          },
          "422": {
            "description": "Invalid request body — never charged"
          }
        },
        "x-payment-info": {
          "pricingMode": "fixed",
          "price": "0.01",
          "currency": "USDC",
          "protocols": [
            "mpp",
            "x402"
          ],
          "x402": {
            "scheme": "exact",
            "network": "sui:mainnet",
            "asset": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
            "payTo": "0x5d903be1cfc87762b89c03512d893d7ae9b3c42ddfff01d2b02a4c0bd2d9497b"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "Project slug from /x402/search"
                  }
                },
                "required": [
                  "slug"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/x402/risk": {
      "post": {
        "operationId": "x402_risk",
        "summary": "Sui Risk Radar: projects showing risk signals plus the healthiest projects.",
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Payment required — the body carries an x402 accepts[] envelope (scheme \"exact\", network sui). Sign it and retry with the X-PAYMENT header."
          },
          "422": {
            "description": "Invalid request body — never charged"
          }
        },
        "x-payment-info": {
          "pricingMode": "fixed",
          "price": "0.01",
          "currency": "USDC",
          "protocols": [
            "mpp",
            "x402"
          ],
          "x402": {
            "scheme": "exact",
            "network": "sui:mainnet",
            "asset": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
            "payTo": "0x5d903be1cfc87762b89c03512d893d7ae9b3c42ddfff01d2b02a4c0bd2d9497b"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/x402/new-contracts": {
      "post": {
        "operationId": "x402_new_contracts",
        "summary": "Move packages recently deployed on Sui mainnet with 3+ day-one users.",
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Payment required — the body carries an x402 accepts[] envelope (scheme \"exact\", network sui). Sign it and retry with the X-PAYMENT header."
          },
          "422": {
            "description": "Invalid request body — never charged"
          }
        },
        "x-payment-info": {
          "pricingMode": "fixed",
          "price": "0.01",
          "currency": "USDC",
          "protocols": [
            "mpp",
            "x402"
          ],
          "x402": {
            "scheme": "exact",
            "network": "sui:mainnet",
            "asset": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
            "payTo": "0x5d903be1cfc87762b89c03512d893d7ae9b3c42ddfff01d2b02a4c0bd2d9497b"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/x402/sunset": {
      "post": {
        "operationId": "x402_sunset",
        "summary": "Sui projects that shut down, are winding down or went offline, with reason and date.",
        "responses": {
          "200": {
            "description": "Success"
          },
          "402": {
            "description": "Payment required — the body carries an x402 accepts[] envelope (scheme \"exact\", network sui). Sign it and retry with the X-PAYMENT header."
          },
          "422": {
            "description": "Invalid request body — never charged"
          }
        },
        "x-payment-info": {
          "pricingMode": "fixed",
          "price": "0.01",
          "currency": "USDC",
          "protocols": [
            "mpp",
            "x402"
          ],
          "x402": {
            "scheme": "exact",
            "network": "sui:mainnet",
            "asset": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
            "payTo": "0x5d903be1cfc87762b89c03512d893d7ae9b3c42ddfff01d2b02a4c0bd2d9497b"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        }
      }
    }
  }
}