Version 2.0 - Production Ready Backend
/api/endpoints/auth.php?action=login
Admin login - Returns session
/api/endpoints/auth.php?action=logout
Admin logout
/api/endpoints/auth.php?action=check
Check authentication status
/api/endpoints/licenses.php?action=create
Create new license key
/api/endpoints/licenses.php
List all licenses (with pagination/search)
/api/endpoints/licenses.php?action=get&key=AKRS-XXXXX
Get single license details
/api/endpoints/licenses.php?action=suspend
Suspend a license
/api/endpoints/licenses.php?action=ban
Ban a license
/api/endpoints/licenses.php?action=extend
Extend license expiry
/api/endpoints/licenses.php?action=reset
Reset activation count
/api/endpoints/licenses.php
Delete a license
/api/endpoints/verify.php
License verification - CRITICAL: Client depends on this!
LICENSE_SECRET in .env must match CLIENT config{"payload": "JSON_STRING", "sig": "HMAC"}AKRS-XXXXXXXXXXXXXXXXYYYY-MM-DD HH:MM:SSRun database initialization:
Visit: /api/setup/install.php
Create License:
POST /api/endpoints/licenses.php?action=create
Content-Type: application/json
{
"expires_at": "2026-12-31 23:59:59",
"plan": "yearly",
"domain": "customer.example.com",
"max_activations": 5
}
Verify License (Client):
POST /api/endpoints/verify.php
Content-Type: application/json
{
"license_key": "AKRS-XXXXXXXXXXXXXXXX",
"domain": "customer.example.com",
"fingerprint": "device_hash_here"
}
Response (Critical Format):
{
"payload": "{\"status\":\"ok\",\"expires\":\"2026-12-31 23:59:59\"}",
"sig": "HMAC_SHA256_SIGNATURE_HERE"
}
MLM License Admin Panel v2.0 | Built with security best practices