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 usesModelVersion=1, which does not include the customer secret.
Errors
Model Versions
This changelog list changes of the returned fields given the model version.- Version 3 adds
Notesto the version 2 customer fields, includingSecret. - Version 2 includes
Secretand returns the same customer fields in all three customer lists. - 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. CallGetCustomers 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.
1234 is an example ID and the secret is a placeholder:
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.