Skip to main content
The /licenses resource is the core of Avalex’s licensing system. A license ties a specific product to a specific customer and controls how, where, and for how long their software can run. Each license tracks which IP addresses and hardware IDs (HWIDs) have been bound to it, records every validation attempt, and carries a version counter for safe concurrent updates. You can issue licenses manually, adjust slot limits, extend expiry dates, and clear bound devices — all through this API.

Required Permissions


List All Licenses

string
required
Bearer <token> or Basic credentials.
Returns an array of all license records in your Avalex account.
Response — 200 OK

Create a License

string
required
Bearer <token> or Basic credentials.
string
required
ID of the product this license is issued for.
string
required
ID of the customer who owns this license.
number | null
Expiry timestamp in milliseconds. Set to null for a perpetual (never-expiring) license.
integer | null
Maximum number of IP addresses this license may bind to. Overrides the product-level default. Set to null for unlimited.
integer | null
Maximum number of hardware IDs this license may bind to. Overrides the product-level default. Set to null for unlimited.
Creates a new license and returns the created record.
Response — 201 Created

Get a License by ID

string
required
The unique license ID (e.g. lic_12345).
Returns a single license record including its current bound IPs, HWIDs, and validation history. Responds with 404 Not Found if the license does not exist.
Response — 200 OK

Update a License

string
required
The unique license ID.
Performs a full replacement of the license record. You must include all fields you want to retain. Returns 404 Not Found if the license does not exist.
This is a full replacement (PUT). To remove a bound HWID or IP address, omit it from the usedHwids or usedIps arrays in your request body. Any entries you include will be retained; any you omit will be cleared.
Response — 200 OK

Delete a License

string
required
The unique license ID.
Permanently removes the license record. Returns 204 No Content on success and 404 Not Found if the ID does not exist.
Response — 204 No Content

License Schema

Full Schema Example