License API
A ready-to-use subscription licensing service. Bind licenses to devices via HWID, verify status, and manage subscribers from a single admin panel.
How it works
01
Login
The client sends username, password, and a device HWID to /api/login.
02
Bind
The first login binds the HWID. Later logins must use the same device.
03
Check
The client calls /api/check with its token to verify remaining rental time.
Quick start
- Create a subscriber in the admin panel
Go to /admin, sign in with your admin password, and add a user with a license duration.
- Download the Python client
The client extracts a stable HWID, logs in, and checks license status.
/client/license_client.pyDownloadpip install requests
python license_client.py - Or call the API directly with curl
curl -X POST /api/login \ -H "content-type: application/json" \ -d '{"username":"your-user","password":"your-pass","hwid":"your-hwid"}'
API endpoints
/api/login{ "username": "demo", "password": "demo", "hwid": "..." }/api/check{ "token": "...", "hwid": "..." }/api/admin/usersEnvironment variables
libsql://...
...
change-me-in-production
random-secret-pepper