{
 "openapi": "3.0.3",
 "info": {
  "title": "RugRadar API",
  "version": "1.2",
  "description": "Instant rug check for Solana tokens: creator rights, Token-2022 traps, rug-factory pattern, extreme pumps on fresh pools, serial creators, holder concentration. Get a key in Telegram: @RugRadarCoinBot /api."
 },
 "servers": [
  {
   "url": "https://rugradar.larpstudios.de"
  }
 ],
 "components": {
  "securitySchemes": {
   "ApiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "X-API-Key"
   }
  },
  "schemas": {
   "Flag": {
    "type": "object",
    "properties": {
     "code": {
      "type": "string"
     },
     "text": {
      "type": "string"
     },
     "points": {
      "type": "integer"
     }
    }
   },
   "Check": {
    "type": "object",
    "properties": {
     "mint": {
      "type": "string"
     },
     "symbol": {
      "type": "string"
     },
     "score": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
     },
     "level": {
      "type": "string",
      "enum": [
       "low",
       "caution",
       "risky",
       "high"
      ]
     },
     "flags": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Flag"
      }
     },
     "positives": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "facts": {
      "type": "object"
     },
     "checked_at": {
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "Error": {
    "type": "object",
    "properties": {
     "error": {
      "type": "string"
     }
    }
   }
  }
 },
 "security": [
  {
   "ApiKey": []
  }
 ],
 "paths": {
  "/v1/check": {
   "get": {
    "summary": "Rug check for one Solana token",
    "parameters": [
     {
      "name": "mint",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "Solana token mint address"
     }
    ],
    "responses": {
     "200": {
      "description": "Check result",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Check"
        }
       }
      }
     },
     "400": {
      "description": "Invalid mint",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key"
     },
     "402": {
      "description": "No calls left"
     },
     "404": {
      "description": "Token not found"
     },
     "429": {
      "description": "Rate limit"
     }
    }
   }
  },
  "/health": {
   "get": {
    "summary": "Service status",
    "security": [],
    "responses": {
     "200": {
      "description": "ok"
     }
    }
   }
  }
 }
}