Skip to main content
Assumed ModelVersion: 3 (highest documented version at generation time) This method returns the list of customers. Use ModelVersion=2 or ModelVersion=3 to include each customer’s secret. By default, it preserves the legacy ordering. If SortByCreatedDescending=true, the newest customers will be shown first. This method is accessed by https://api.cryptolens.io/api/customer/GetCustomers

Parameters

Results

Example results

The following example uses ModelVersion=1, which does not include the customer secret.

Errors

Model Versions

This changelog list changes of the returned fields given the model version.
  1. Version 3 adds Notes to the version 2 customer fields, including Secret.
  2. Version 2 includes Secret and returns the same customer fields in all three customer lists.
  3. Version 1 is the original model and the default. It does not include Secret.

FAQ

Can I retrieve a customer secret through the API?

Yes. Call GetCustomers with ModelVersion=2 and the exact CustomerId. Use an access token with the GetCustomers permission. The token’s account must have access to that customer. The default version 1 omits Secret; versions 2 and 3 include it. This POST example retrieves an existing customer’s secret. Replace YOUR_GETCUSTOMERS_ACCESS_TOKEN with your token and YOUR_CUSTOMER_ID with the customer’s integer ID. Run this administrative request from your backend. The customer filter selects the response; it does not restrict the token’s permissions.
Abbreviated version 2 response for an owned customer; 1234 is an example ID and the secret is a placeholder:
Check result and find the matching customer before reading secret. An owned customer appears in customers; reseller or shared customers can appear in resellerCustomers or visibleCustomers instead. An empty result does not establish that the API cannot return secrets. The CustomerId filter is an exact match; the Search parameter is a broader search. To use a secret you already have to retrieve that customer’s licenses, call GetCustomerLicensesBySecret with its separate GetCustomerLicensesBySecret permission. That operation does not retrieve the secret itself.