CRYPTLEX DOCUMENTATION

pkey/generate

Generate product keys for a product version.

Method Parameters

All parameters are REQUIRED unless mentioned otherwise.

api_key

Your API key available on API page in dashboard.

version_id

The id of the product version, the product key belongs to. You can get version ID from product version page.

total_pkeys (optional)

The total number of product keys to generate. If not set, it defaults to "1".

allowed_acts (optional)

The total number of allowed activations for each product key. If not set, it defaults to "1".

allowed_deacts (optional)

The total number of allowed deactivations for each product key. If not set, it defaults to "1".

email (optional)

The email address to be associated with the product key(s).

allow_vm (optional)

Whether to allow the generated product key(s) to activate on virtual machines. Possible values: "0" or "1". If not set, it inherits the value of product version.

pkey_type (optional)

Whether product key is for LexActivator or LexFloat Server. Possible values: "0" or "1":
  • "0" - LexActivator Key
  • "1" - LexFloat Server Key
If not set, it defaults to "0".

lic_validity (optional)

The license validity of product key in days. If not set, it inherits the value of product version.

cust_field_id[] (optional)

Custom field ids corresponding to the custom license fields associated with the product key(s).

cust_field_value[] (optional)

Custom field values corresponding to the custom field ids. The number of values must match the number of ids provided in cust_field_id[] parameter. Atleast, all required custom fields must be present.

Example Response

On success it returns the following sample response:


    {
        "success": true,
        "data": [
            {
                "key": "87B0C-010FE-F2997-19D56-18364",
                "allowed_acts": "2"
            }
        ]
    }