POST /api/v1/{application_id}/licenses
{
"count": 1,
"format": "[A-Z0-9]{13}",
"duration": {
"unit": "m",
"count": 1
}
}
200 OK
{
"success": true,
"licenses": [
"ABC1234567890",
"ABC1234567891",
...
"ABC1234567899"
]
}
Available duration units:
m(minutes),h(hours),d(days)
durationis optional, if not provided, the license will be valid forever
GET /api/v1/{application_id}/licenses/{license}
200 OK
{
"id": 1,
"hwid": "...",
"duration": 15,
"revoked": false,
"expiresAt": 1234567890,
"createdAt": 1234567890,
"updatedAt": 1234567890
}
durationis in minutes
expiresAtanddurationare undefined if the license is not timed
PATCH /api/v1/{application_id}/licenses/{license}
{
"addMinutes": 60
}
200 OK
{
"success": true,
"duration": 120,
"addedMinutes": 60
}
Adds the specified number of minutes to the license duration
Returns an error if the license is revoked or not found
addMinutesmust be a positive number
PUT /api/v1/{application_id}/licenses/{license}/reset
DELETE /api/v1/{application_id}/licenses/{license}