Check License

Endpoint

  • Method: GET

  • Path: /api/v4/check_license

  • Description: Checks the status and validity of a license.

Authentication

See License API Authorization.

Required headers

  • Date (string) — RFC7231 GMT date string

  • Authorization (string) — signature or bearer token

  • Accept: application/json

Request

Query parameters

Required:

  • hardware_id (string) — Unique hardware ID generated for the client device

  • product (string) — Product short code

One of:

  • license_key (string) — Required if product is key-based

  • username (string) — Required if product is user-based

Optional:

  • license_id (number) — Targets a specific license ID

  • include_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)

Examples

Schema

chevron-rightRequest schema (TypeScript + JSON Schema)hashtag

TypeScript

JSON Schema

chevron-rightResponse schema (TypeScript)hashtag

TypeScript

Response Signatures

The response object contains the following digital signatures:

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:

chevron-rightError schema (TypeScript + JSON Schema)hashtag

JSON Schema

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

Last updated

Was this helpful?