POST https://api.luaprotect.dev/v1/keys/validate

Validate and check a license key for your account programmatically via your Developer API key. Perfect for backend servers, Discord bots, Python scripts, or web dashboards. (For client-side Roblox scripts without an API key, use GET /v1/public/validate-key instead).

Body Parameters

Example Request

curl -X POST "https://api.luaprotect.dev/v1/keys/validate" \
  -H "Authorization: Bearer LUAP-YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "keyCode": "LP-ABC123XYZ",
    "hwid": "device_hwid_sample",
    "bindHwid": true
  }'

Example Response

{
  "valid": true,
  "key": {
    "id": "key_77192b",
    "keyCode": "LP-ABC123XYZ",
    "keyType": "redeem",
    "status": "active",
    "hwid": "device_hwid_sample",
    "expiresAt": "2026-09-02T12:00:00.000Z",
    "scriptId": "scr_88192a",
    "usedCount": 1,
    "note": "Customer license",
    "createdAt": "2026-09-01T02:00:00.000Z"
  }
}