{
  "title": "Fusion OTP Hub — REST Automation API",
  "domain": "fusionblogcommunity.com",
  "status": "online",
  "endpoints": {
    "new_email": {
      "method": "GET or POST",
      "url": "https://fusionblogcommunity.com/api/otp/new",
      "query_params": {
        "base": "Base mailbox (optional, default: lakofusion@fusionblogcommunity.com)",
        "prefix": "Custom tag/prefix (optional, default: reg_random)"
      },
      "example_curl": "curl https://fusionblogcommunity.com/api/otp/new",
      "example_python": "email = requests.get('https://fusionblogcommunity.com/api/otp/new').json()['email']"
    },
    "get_otp": {
      "method": "GET or POST",
      "url": "https://fusionblogcommunity.com/api/otp/get?email=<email>",
      "query_params": {
        "email": "The target email address to check (required)",
        "key": "AgentMail API Key (optional if configured in Worker env)"
      },
      "example_curl": "curl 'https://fusionblogcommunity.com/api/otp/get?email=lakofusion+test@fusionblogcommunity.com'",
      "example_python": "res = requests.get(f'https://fusionblogcommunity.com/api/otp/get?email={email}').json()\nprint(res.get('otp'))"
    },
    "wait_for_otp": {
      "method": "GET",
      "url": "https://fusionblogcommunity.com/api/otp/wait?email=<email>&timeout=30",
      "query_params": {
        "email": "The target email address to wait for (required)",
        "timeout": "Max wait time in seconds (optional, default: 30, max: 60)",
        "interval": "Polling interval in seconds (optional, default: 2, min: 1)"
      },
      "example_curl": "curl 'https://fusionblogcommunity.com/api/otp/wait?email=lakofusion+test@fusionblogcommunity.com&timeout=30'",
      "example_python": "otp = requests.get(f'https://fusionblogcommunity.com/api/otp/wait?email={email}&timeout=30').json()['otp']\nprint(f'Received OTP: {otp}')"
    }
  }
}