Skip to content

API v1 (Legacy)

API v1 provides a single endpoint for license validation. It is the original API version and remains available for backwards compatibility.

Endpoint

Validate License

POST /api/v1/validate

Request Body:

json
{
  "licenseKey": "XXXXX-XXXXX-XXXXX-XXXXX",
  "productId": 1,
  "productVersion": "1.0.0",
  "hwid": "HARDWARE_ID_STRING",
  "ip": "192.168.1.1",
  "operatingSystem": "Windows 10",
  "osVersion": "10.0.19045",
  "osArchitecture": "amd64",
  "javaVersion": "17.0.1",
  "macAddress": "00:1A:2B:3C:4D:5E"
}

Response (Valid):

json
{
  "valid": true,
  "message": "License is valid",
  "hardwareLocked": true,
  "iPLocked": true,
  "expiryDate": "2025-12-31T23:59:59",
  "maxIPs": 3,
  "maxHWIDs": 3,
  "totalRequests": 42
}

Response (Invalid):

json
{
  "valid": false,
  "message": "License not found or invalid"
}

Fields

FieldRequiredDescription
licenseKeyYesThe license key to validate
productIdYesProduct ID to validate against
productVersionNoVersion of the product (for logging)
hwidNoHardware ID for HWID locking
ipNoIP address (for IP binding)
operatingSystemNoOS name (for request logging)
osVersionNoOS version (for request logging)
osArchitectureNoOS architecture (for request logging)
javaVersionNoJava version (for request logging)
macAddressNoMAC address (for request logging)

Released under the MIT License.