Key Information
Retrieves detailed information about a license key from the server.
Signature
std::string GetKeyInfo(const std::string& licenseKey);Parameters
Type: std::string
Description: The license key to query
Format: "XXXX-XXXX-XXXX-XXXX"
Required: Yes
Returns
Type: std::string
JSON string
License information
Empty string
Error or license not found
Description
This function queries the server for detailed information about a license key, including:
License status (active, expired, suspended)
Creation and expiration dates
HWID binding information
Device limits
User information
Custom notes
You must call SendHeartbeat() before using this function.
Basic Example
Response Format
The function returns a JSON string with the following structure:
Parsing JSON Response
Use Cases
Response Fields
license_key
string
The license key
status
string
active, expired, or suspended
created_at
string
ISO 8601 timestamp
expires_at
string/null
ISO 8601 timestamp or null for lifetime
hwid_bound
string/null
Bound hardware ID or null
max_devices
number
Maximum allowed devices
current_devices
number
Currently registered devices
user_email
string
Associated user email
note
string
Custom note from dashboard
product_name
string
Product name
tier
string
License tier (if applicable)
Error Handling
Complete Example
Web Dashboard
License information is managed from Dashboard → Keys
Best Practices
When to Use GetKeyInfo
Displaying license details to user
Checking expiration before critical operations
Verifying tier for feature access
Logging license information
Troubleshooting license issues
Related Functions
ValidateKey - Validate license key
GetSessionToken - Get session token
SendHeartbeat - Required before GetKeyInfo
Last updated