Authenticate users with a key instead of an account. Lumikey stores the keys, answers your software with a signed result and lets you manage every key from one place.
Your software sends the project id, the key and a device id. The reply says whether the key is valid, why not if it is not, when it ends, its tier and any extra fields you attached.
The reply carries an HMAC-SHA256 signature made with your project secret. Your own server checks it, so a fake server on the user machine cannot pretend a key is valid.
Check at startup and every 5 to 15 minutes, handle a network failure, send a nonce and verify the signature on your server. Never ship your signing secret or management token inside software you distribute.
It identifies a license, not a person. Use your own account id as the device id if you want a key to belong to one account.
Compute an HMAC-SHA256 of the answer fields with your project signing secret and compare. The docs show the exact string and code.
HTTP 200 with valid set to false and a code such as KEY_INVALID, KEY_EXPIRED, KEY_REVOKED or HWID_MISMATCH. The docs show the full JSON for each.