Product Documentation
This page contains all the API routes that are available in the Independent License System.
All route documentation is for versions 2.0.0 and up.
Table of Contents
To establish authentication to the Independent License Systems API a API token must be set in the configuration file.
Open the config.json
On line eight (by default) change the token to what is desired. Using a site RandomKeygen is recommended.

"apiKey": "123",Save the configuration file and restart Independent License System for changes to take effect.
If the installation of Independent License System has no API key set it opens the system to risk and abuse. Even if not using the API it's recommended to set a secure token.
If an API request is made with the incorrect or an invalid authorization header the below 403 response is returned.
"Not authorized to access this resource."| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
[
{
"id": 3,
"userId": "282762192544333827",
"productId": 1,
"status": 1,
"lastRequest": "",
"authIP": "1.1.1.1",
"authKey": "4zWqp0Npqkcp3XT_42pIjrBP6kbR23kI2cahk0cSYx1EG",
"disabled": 0,
"iplocked": 0
}
]| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
| Name | Type | Required | Description |
|---|---|---|---|
| id | Integer | required | The ID of the key as presented in the database and website. |
{
"id": 3,
"userId": "282762192544333827",
"productId": 1,
"status": 1,
"lastRequest": "",
"authIP": "1.1.1.1",
"authKey": "4zWqp0Npqkcp3XT_42pIjrBP6kbR23kI2cahk0cSYx1EG",
"disabled": 0,
"iplocked": 0
}License key not found.| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
| Name | Type | Required | Description |
|---|---|---|---|
| id | Integer | required | The ID of the key as presented in the database and website. |
[
{
"id": 147,
"keyId": 3,
"timeAt": "1788648761000",
"authIP": "192.168.1.10",
"details": "",
"status": "AUTHORISED"
}
]License key not found or there is no logs to show.| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required | The license key to compare to the product and key details. |
| Name | Type | Required | Description |
|---|---|---|---|
| productID | Integer | required | The product ID to check. |
| Name | Type | Required | Description |
|---|---|---|---|
| info | String | optional | Additional information to include in the license log. |
| log | Boolean | optional | Defaults to true. Whether to log the request into the license logs database table. |
{
"status": "AUTHORISED",
"pass": true,
"details": "Status message"
}List of response statuses:
AUTHORISED - Authorisation completed
KEY DISABLED - This license key has been disabled by an administrator
NOT ACTIVE - The supplied key is not active
NOT AUTHORISED - The supplied IP is not authorised
NOT FOUND - No key was provided
NOT FOUND - The supplied license key was not found. Please check your auth key is correct
| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
| Name | Type | Required | Description |
|---|---|---|---|
| uid | String | required | The user ID to attach the license key to. |
| pid | Integer | required | The product ID to register the license key for. |
| status | Boolean | optional | The active state of the license key. |
| ip | String | optional | The authorised IP address for the license key to pass authentication. |
| disabled | Boolean | optional | Determines if the license key is force disabled. Defaults to false. |
{
"id": 4,
"userId": "282762192544333827",
"productId": 1,
"status": 1,
"lastRequest": null,
"authIP": "",
"authKey": "WrPF2MCWFLlyIteUYjr6drjM9hSGtXVpboaNx9xBH_6vI",
"disabled": 0,
"iplocked": 1
}Data created but could not be read back immediately. Please fetch manually.Missing body content. uid and pid are required.| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
| Name | Type | Required | Description |
|---|---|---|---|
| id | Integer | required | The ID of the key as presented in the database and website. |
| Name | Type | Required | Description |
|---|---|---|---|
| disabled | Boolean | optional | Determines if the license key is force disabled. Defaults to false. |
| ip | String | optional | The authorised IP address for the license key to pass authentication. |
| iplocked | Boolean | optional | Determines if the license key is locked only to the authorised IP address. |
{
"id": 3,
"userId": "282762192544333827",
"productId": 1,
"status": 1,
"lastRequest": "",
"authIP": "1.1.1.1",
"authKey": "4zWqp0Npqkcp3XT_42pIjrBP6kbR23kI2cahk0cSYx1EG",
"disabled": 0,
"iplocked": 0
}License key not found.| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
| Name | Type | Required | Description |
|---|---|---|---|
| id | Integer | optional | The ID of the key as presented in the database and website. |
{
"id": 3,
"userId": "282762192544333827",
"productId": 1,
"status": 1,
"lastRequest": "",
"authIP": "1.1.1.1",
"authKey": "4zWqp0Npqkcp3XT_42pIjrBP6kbR23kI2cahk0cSYx1EG",
"disabled": 0,
"iplocked": 0
}License key not found.