Skip to main content
Legacy API

The examples on this page use the legacy contract. They are not v2 fallbacks. This operation has no v2 equivalent and remains legacy-only. See the Configure v2 migration guide.

Validate License

To validate the license of KnoxConfigure, use the following methods.

Example​

import { KnoxInstance } from '@redredgroup/samsungknox-api';
const instance = new KnoxInstance({
region: 'YOUR_KNOX_REGION',
knoxAccessToken: 'YOUR_JWT_TOKEN',
});

const validateLicense = await instance.kcLicense.validateLicense({
args: {
licenseKey: 'YOUR_LICENSE_KEY',
licenseName: 'YOUR_LICENSE_NAME',
},
});

console.log(validateLicense);

Input parameters:

  • args: Insert parameters for the profile (required) licenseKey and licenseName.
  • region: Insert the Knox region. Most of them are EU (case insensitive)
  • knoxAccessToken: Your X-KNOX-APITOKEN.

Output:

  • Responds with the validation results for that license.