Key Information

Retrieves detailed information about a license key from the server.

This function returns comprehensive license details in JSON format.

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

Value
Description

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

Basic Example

Response Format

The function returns a JSON string with the following structure:

Parsing JSON Response

Use Cases

Response Fields

Field
Type
Description

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

1

View License Details

Navigate to Dashboard → Keys, find the license in the table, and view details such as:

  • Status badge (Active/Expired/Suspended)

  • Creation and expiration dates

  • Bound HWID

  • Device count

  • User information

2

Edit License Information

From the dashboard you can:

  • Extend expiration — Add more time

  • Reset HWID — Unbind from current device

  • Suspend/Activate — Toggle license status

  • Edit note — Update custom note

  • View logs — See usage history

Best Practices

Performance Consideration

GetKeyInfo makes a server request. Cache the result if you need to check multiple fields.

Last updated