API Reference
Base URL: https://devkanan.dev
All calls require token (Access Token) as form-data. JSON responses with result (0 = OK, 1 = error) and message.
Licenses
POST /api/key/activate
Activates a license on a machine.
| Param | Type | Required | Description |
|---|---|---|---|
token |
string | ✅ | Access Token |
product_id |
int | ✅ | Product ID |
key |
string | ✅ | License key |
machine_code |
string | ✅ | Machine code hash |
friendly_name |
string | Display name | |
floating_time_interval |
int | Requested lease seconds (FloatingLease only, server-capped to 60-1800) |
Response:
{
"licenseKey": "BASE64_SIGNED_LICENSE_JSON",
"signature": "BASE64_RSA",
"result": 0,
"message": ""
}
POST /api/key/getkey
Get license info without activating.
POST /api/key/deactivate
Release the machine.
POST /api/key/createkey
Create a new license (requires CreateKey permission).
Credits
POST /api/credits/record
Consume credits.
POST /api/credits/balance
Check current balance.
Rate limits
| Endpoint | Limit |
|---|---|
/auth/* |
5 / min / IP |
/api/* |
60 / min / IP |
| Global | 200 / min / IP |