GET
License Info
Validate a license key and retrieve its details including product assignment, expiry, and status.
GET/api/v1/licenses/validate/{licenseKey}
Headers
Authorizationrequiredheader
Bearer YOUR_API_KEY
Response
json
{
"success": true,
"license": {
"key": "XXXX-XXXX-XXXX",
"status": "active",
"productId": "uuid",
"productName": "Pro Plan",
"productSlug": "pro-plan",
"expiresAt": "2025-02-18T12:00:00Z",
"isLifetime": false,
"canRedeem": true,
"daysRemaining": 30
}
}Python
python
r = requests.get(
f"https://authorized.lol/api/v1/licenses/validate/{license_key}",
headers={"Authorization": f"Bearer {api_key}"}
)
license = r.json()["license"]
print(license["productSlug"]) # e.g. "pro-plan"