Developer API Integration

A complete guide to integrating LicenseGuard into your PHP, Node.js, or mobile applications.

Base URL

All API requests should be made to your main installation domain. Your base API URL is:

https://verify.appeesoft.com/api/license
POST

/activate

Permanently bind a domain to a license key during installation.

JSON Request Body

{
  "license_key": "YESL-8A9F-2BN4-P1LK",
  "identifier": "client-domain.com"
}

Expected Responses

  • 200 License activated successfully for this domain.
  • 404 Invalid license key.
  • 403 Domain limit reached for this license.
  • 403 License is suspended.
POST

/verify

Check if an already-activated license is still valid and not suspended.

JSON Request Body

{
  "license_key": "YESL-8A9F-2BN4-P1LK",
  "identifier": "client-domain.com"
}

Expected Responses

  • 200 License is valid.
  • 404 License is not activated for this domain.
  • 403 License is suspended.

Drop-in PHP Snippet

A ready-to-use helper function. Copy this into your software products to verify licenses instantly using cURL.

function verify_license($license_key) {
    // REPLACE WITH YOUR ACTUAL LICENSE PANEL URL
    $server_url = "https://verify.appeesoft.com/api/license/verify";
    $domain = $_SERVER['HTTP_HOST'];
    
    $ch = curl_init($server_url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
        'license_key' => $license_key,
        'identifier' => $domain
    ]));
    
    $result = json_decode(curl_exec($ch), true);
    curl_close($ch);
    
    // If success, return true to let the script run
    if (isset($result['status']) && $result['status'] === 'success') {
        return true;
    }
    
    // Block execution if invalid
    die("License Error: " . ($result['message'] ?? 'Unable to verify.'));
}