Overview
The activate endpoint activates a license key on the current machine, binding it permanently to that specific machine. Once activated, the license can only be validated on the same machine.Endpoint
This endpoint is rate-limited to 5 requests per IP address within a 15-minute window.
Request
Request Body
The license key to activate
Example Request
Response
Success Response
Whether the activation was successful
Description of the activation result
The hashed machine ID the license is now bound to
ISO timestamp of when the license was activated
ISO timestamp of when the license will expire
Example Response - First Activation
Example Response - Already Activated (Same Machine)
Activation Process
Generate Machine ID
The server generates a unique, hashed machine ID based on hardware characteristics
License Duration
When a license is activated for the first time:- Issued At: Set to the current date/time
- Expires At: Calculated as
issuedAt + duration months - Duration: Between 1-12 months (configured when license is created)
Error Responses
Missing License Key
Status Code: 400License Not Found
Status Code: 404License Revoked
Status Code: 403License Expired
Status Code: 403Already Activated on Different Machine
Status Code: 403Rate Limit Exceeded
Status Code: 429Server Error
Status Code: 500Machine Binding Behavior
How machine binding works
How machine binding works
When a license is activated:
- Machine ID Generation: A unique ID is generated based on hardware characteristics (CPU, motherboard, etc.) and then hashed for security
- First Activation: The machine ID is stored with the license
- Subsequent Checks: All validation requests verify the machine ID matches
- Security: The hashed ID prevents reverse-engineering while ensuring uniqueness
What happens on different machines
What happens on different machines
If you try to activate or validate a license on a different machine:
- Activation: Returns 403 error - “License already activated on another machine”
- Validation: Returns
machine_mismatchstatus - Bypass: The only way to use the license on a new machine is to revoke and recreate it
Machine ID stability
Machine ID stability
The machine ID is based on stable hardware characteristics:
- Should remain consistent across reboots
- Should remain consistent across OS updates
- May change if hardware components are replaced
- Uses cryptographic hashing for security
Integration Example
Best Practices
First-Run Only
Only call activation once during initial setup or installation
Store Locally
Cache activation status to avoid repeated API calls
User Feedback
Provide clear feedback about activation success or failure
Handle Errors
Gracefully handle all error scenarios with helpful messages
See Also
- Validate License - Check license validity
- Create License - Generate new licenses
- Machine Binding - Understanding machine binding
- License Lifecycle - License states and transitions