License API

Trial Key

9min
Creates and returns a trial license
GET
Request
Query Parameters
hardware_id
required
String
In RFC7231 format (see "License API Authorization"), eg.: Thu, 17 Nov 2022 20:51:35 GMT
product
required
String
Product short code
email
optional
String
Required if product is user based. Attach the assigned license user email (eq. [email protected])
license_policy
optional
String
Sets license policy (license policy code), if omited the default license policy for the product will be used
first_name
optional
String
Optional. For user-based product licenses only
last_name
optional
String
Optional. For user-based product licenses only
phone
optional
String
Optional. For user-based product licenses only
password
optional
String
Only for user-based licenses: Sets the license user's password. If not provided, a random password will be generated and returned in the response
Header Parameters
Date
required
String
In RFC7231 format (see "License API Authorization"), eg.: Thu, 17 Nov 2022 20:51:35 GMT
Authorization
required
String
See "License API Authorization" article
Curl
Node.js
JS
Python
Ruby
Responses
200


For a trial license to be created, the product must have trial licenses enabled by setting allow_trial to true.

By default, the same combination of hardwareID and product will generate the same trial key. This ensures that users cannot obtain multiple trial keys on the same device.

If you want to permit multiple trial licenses on the same device, you can enable this feature by adjusting the Allow multiple licenses on trial setting in the vendor platform under your company account settings.

Schema

Request Query Parameters

TypeScript
JSON


Response Body

The response from this endpoint will differ depending in whether a trial license already exists for the requested product, hardware ID and email* (*if using user-based license)

1. If a new trial license is being created

TypeScript
JSON


2. If a trial license already exists

TypeScript


Errors

If an error occurs, the response will have an HTTP status code of 400 or higher, and the response body will contain an error description in the following format:

TypeScript


List of exceptions

missing_parameters (400): Some parameters are missing in the request: { params }
missing_hardware_id (400): The hardware_id missing in the request
unknown_product (400): Provided product was not found
trial_not_allowed (400):Product does not allow trial
email_missing (400): An email is missing for user-based product