Module API
Use the official Lua module to validate and execute scripts with minimal setup
The Module API provides a simpler way to use the API for those who prefer not to spend too much time on setup.
The Module API internally uses the same endpoints as the manual Validation API.
Start by loading the module (see below.)
local module = loadstring(game:HttpGet("https://rat.lat/modules/v1/api.lua"))()Next, create a new API instance using your SCRIPT_ID and user key.
local SCRIPT_ID = "YOUR_SCRIPT_ID"
local USER_KEY = "USER_KEY_HERE"
local api = module.new(SCRIPT_ID, USER_KEY)Afterwards call validate() to perform all required checks and execute the returned script.
local success, result = api:validate()
if not success then
warn(result)
endThe module automatically performs the following steps:
- Includes HWID if required
- Sends the validation request
- Executes the returned script if access is granted
If validation fails, validate() returns false along with an error message. The script will not execute.
validate() returns two values:
success, resultsuccess: boolean indicating whether validation passed
result: validation response or error message
It is recommended to use the Validation API over the Module API for more custom cases.