API Reference
REST API
Base URL: https://api.licenshub.com/v1
Authentication
Pass your API key as a Bearer token on every request.
Authorization: Bearer YOUR_API_KEYVerify a license
GET
/licenses/{key}/verifyCheck whether a license key is valid and active.
curl https://api.licenshub.com/v1/licenses/LK-XXXX/verify \
-H "Authorization: Bearer YOUR_API_KEY"Response 200 OK
{
"valid": true,
"key": "LK-XXXX-YYYY-ZZZZ",
"product": "ProSuite",
"expires_at": "2026-12-31T00:00:00Z",
"activations": 1,
"auth_ms": 42
}
Issue a license
POST
/licensesCreate a new license key for a product.
curl -X POST https://api.licenshub.com/v1/licenses \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"product_id":"prod_xxx","expires_in_days":365}'Revoke a license
DELETE
/licenses/{key}Permanently revoke a license. All future verifications will return valid: false.
Errors
400Bad request — missing or invalid parameters401Unauthorized — invalid or missing API key404License key not found429Rate limit exceeded500Internal server error