Check License
Endpoint
Method:
GETPath:
/api/v4/check_licenseDescription: Checks the status and validity of a license.
Authentication
Required headers
Date(string) — RFC7231 GMT date stringAuthorization(string) — signature or bearer token
Optional headers
licensespring-tpm-signature(string) — TPM licensing signature and algorithmlicensespring-tpm-signature: algorithm="ES256",signature=""
Recommended headers
Accept: application/json
Request
Query parameters
Required:
hardware_id(string) — Unique hardware ID generated for the client deviceproduct(string) — Product short code
One of:
license_key(string) — Required if product is key-basedusername(string) — Required if product is user-based
Optional:
license_id(number) — Targets a specific license IDinclude_expired_features(boolean)env(string)os_ver(string)hostname(string)os_hostname(string)ip(string)ip_local(string)app_ver(string)sdk_ver(string)mac_address(string)include_scheduled_changes(boolean)
Examples
Schema
Response Signatures
The response object contains the following digital signatures:
license_signature: see the Response Signature article
license_signature_v2: see the Response Signature v2 article
offline_signature: can be used for activating/deactivating using the offline method, see Deactivate License (Offline Method)
License Authorization Method
There are two authorization methods for products:
Key-based product licenses
Client provides license_key in requests for key-based products.
Response includes license_key and product_details.authorization_method = "license_key".
User-based product licenses
Client provides username in requests for user-based products.
Response includes product_details.authorization_method = "user" and a user object with license user details.
License Types
The license_type property defines one of these types:
perpetual
time-limited
subscription
consumption
For more information see: License Types
Errors
If an error occurs, HTTP status will be 400 or higher and the body will use this format:
List of exceptions
missing_headers (400): Some headers are missing
unknown_product (400): Provided product was not found
license_not_found (400): License with the provided license user not found
license_not_enabled (400): The license is not enabled
license_not_active (400): The license is not active
device_not_found (400): An active device matching the hardware_id not found
blacklisted (400): This device is blacklisted
license_not_enough_consumptions (400): Not enough consumptions left
floating_not_available (400): No available slots for floating license
product_version_not_supported (400): License product version does not support the app_ver sent in the request
tpm_invalid_public_key (400): The TPM public key sent is not valid
tpm_signature_required (400): The TPM signature is missing from the header and TPM usage is enforced
tpm_signature_missmatch (400): The TPM signature/algorithm is not ES256 and the signature can't be verified against the TPM public key
Last updated
Was this helpful?