🔐 MLM License Admin Panel - API

Version 2.0 - Production Ready Backend

✅ Backend is running! Visit Admin Panel

📋 Available Endpoints

Authentication

POST /api/endpoints/auth.php?action=login

Admin login - Returns session

POST /api/endpoints/auth.php?action=logout

Admin logout

GET /api/endpoints/auth.php?action=check

Check authentication status

License Operations (Protected)

POST /api/endpoints/licenses.php?action=create

Create new license key

GET /api/endpoints/licenses.php

List all licenses (with pagination/search)

GET /api/endpoints/licenses.php?action=get&key=AKRS-XXXXX

Get single license details

POST /api/endpoints/licenses.php?action=suspend

Suspend a license

POST /api/endpoints/licenses.php?action=ban

Ban a license

POST /api/endpoints/licenses.php?action=extend

Extend license expiry

POST /api/endpoints/licenses.php?action=reset

Reset activation count

DELETE /api/endpoints/licenses.php

Delete a license

Client Verification (Public)

POST /api/endpoints/verify.php

License verification - CRITICAL: Client depends on this!

🔑 Critical Configuration

⚠️ IMPORTANT:

🗄️ Database Setup

Run database initialization:

Visit: /api/setup/install.php

📚 Example Usage

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" }

✅ Checklist


MLM License Admin Panel v2.0 | Built with security best practices