Licenses
Activate License
Activate a license key from your customer.”
Activate License Endpoint
The activate endpoint is used to register a new device or instance with a valid license key. This is typically done when a user first sets up your application.
The activation endpoint is a crucial component of your license management system. Here’s a deeper look at how it works and its benefits:
Common Use Cases
- Initial Software Setup: When users first install your application and enter their license key
- Device Migration: When users need to activate your software on a new device
- Multi-device Scenarios: For users who need to use your software across multiple machines
- Cloud Instance Deployment: When spinning up new cloud instances that require license validation
Benefits of the Activation System
- Prevents Unauthorized Usage: Each activation is tracked and counted against the license limit
- User Flexibility: Allows users to manage their own device activations within their quota
- Usage Analytics: Provides insights into how and where your software is being used
- Fraud Prevention: Helps identify and prevent license key sharing or abuse
Activation Flow Example
Here’s how a typical activation flow works:
- User purchases your software and receives a license key
- User installs your application on their device
- Application prompts for license key during first launch
- Application generates a unique instance name (usually based on device characteristics)
- Activation request is sent to the API
- Upon successful activation, the instance ID is stored locally for future validation
The activation endpoint is designed to be both secure and user-friendly, providing a smooth experience for legitimate users while maintaining strong protection against unauthorized usage.
Endpoint Details
- URL:
https://test-api.creem.io/v1/licenses/activate
- Method: POST
- Authentication: Requires API key in headers
Request Parameters
The request body should include:
- key (required): The license key to activate
- instance_name (required): A unique identifier for the device/installation
Response Format
Implementation Examples
-
cURL Example:
-
Python Example:
-
JavaScript Example:
Error Handling
Common error responses include:
- 400 Bad Request: Invalid or missing parameters
- 401 Unauthorized: Invalid API key
- 403 Forbidden: License key has reached activation limit
- 404 Not Found: Invalid license key