Skip to main content
This method will return a list of keys for a given product. Please keep in mind that although each license key will be of the License Key type, the fields related to signing operations will be left empty. Instead, if you want to get a signed license key (for example, to achieve offline key activation), please use the Activation instead. This method is accessed by https://api.cryptolens.io/api/product/GetKeys

Parameters

Results

Example results

Remarks

  • The fields SignDate and Signature will be empty. Please use Activation in order to get each license signed.
  • The order by field has the following structure: fieldName [ascending|descending]. For example, If you want to order by the feature field 1 (F1), you should use F1. If you want it in descending order, please add the descending keywords right after the field, eg. F1 descending. The ascending keyword is the default, hence optional.
  • The search query field accepts the same queries as the search box on the product page. You can read about the format here.
  • The key lock does not have any effect on this method, eg. you will still be able to retrieve all keys even if the key lock is set to a certain key.

Errors

FAQ

How do I find licenses without a customer?

Set SearchQuery to customer.id=-1. You can enter the same query in the product page’s search box:
These search results represent an absent customer with a customer object whose Id is -1. Use this ID check rather than a null check. API calls require ProductId and a token granting GetKeys with access to that product.

Can I find a license using its machine ID?

Yes. To find a registered activation, set SearchQuery to ActivatedMachines.Count(it.Mid="machine code") > 0. Replace machine code with the device’s actual machine code. The same expression works in the product page’s search box. A whitelisted device may never have activated the license. The activated-machine query searches stored node-locked registrations; it does not measure current floating-seat usage. API calls require the GetKeys permission and ProductId.

How many licenses were created this year?

Filter by Created, then read Total (total in JSON). For the 2026 UTC calendar year, use an inclusive start and exclusive end:
Replace both years for the year you want to count. In the dashboard, enter that expression in the product search box. To obtain the count through the API, use this POST request. Replace YOUR_GETKEYS_ACCESS_TOKEN with a token granting GetKeys and access to the product, and YOUR_PRODUCT_ID with the integer product ID.
Example response excerpt; other fields are omitted:
Here, the answer is 237. Returned and the returned license array describe only the current page; counting that page would give 99 and undercount the matches. Total already counts all matches for the query in that product, so you do not need to fetch every page just to count. Check result before using the count. For an account-wide count, query each relevant product and sum its filtered Total once.