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_KEY

Verify a license

GET/licenses/{key}/verify

Check 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/licenses

Create 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 parameters
401Unauthorized — invalid or missing API key
404License key not found
429Rate limit exceeded
500Internal server error