Skip to main content

License Keys Management API

Use this API endpoint to create, show, edit, enable/disable and activate License Keys.

caution

Never send the server-to-server API key from the client-side

CreateLK​

Create License Keys with a designated plan type and optional expiry date.

POST Request
https://{vpn-brand}.vpngn.com/api/lkapi/CreateLK

Request Parameters:

Optional Parameter(s):

  • expire - The License Key expiry date in the following format YYYY-mm-dd
  • batch - Number of License Key to create. The maximum amount in one batch is 100K License Keys. Please note that this process will take a couple of minutes to complete.
  • email - Set to 1 in order to receive an email to the API key's main account address with an attached CSV file of all the License Keys once they are fully produced (required for batch).

ShowLK​

Validates the License Key

POST Request
https://{vpn-brand}.vpngn.com/api/lkapi/ShowLK

Request Parameters:

Successful Return
{"status":"success","license_key":"MAXI-ABC123ABC123","type":"36","expire":"2035-06-01","disabled":"0","used":"1"}

EditLK​

Changes the License Key status, or change its expiry date.

POST Request
https://{vpn-brand}.vpngn.com/api/lkapi/EditLK

Request Parameters:

Optional Parameters:

  • disabled - Disable (1) or Enable (0) the License Key
  • expire - Change the License Key expiry date using the following format YYYY-mm-dd

ActivateLK​

tip

License Key can be automatically activated using the standard SDK Login command, which makes this ActivateLK endpoint redundant - unless there is a specific need to allow users to login using their email addresses rather than with a License Key.

Activate the License Key and provision the requested email address with the relevant plan.

POST Request
https://{vpn-brand}.vpngn.com/api/public/ActivateLK

Request Parameters:

  • license_key - The License Key to activate
  • email - The end-user's email address

Optional Parameters:

  • password - A strong password. If this field is not specified, then the platform will auto-generate a password.
  • first_name - The end-user's first name
  • last_name - The end-user's last name
  • country - The end-user country's code (2 letter ISO code)
  • company_name - The end-user's company name
  • state - The end-user's state
  • zip_code - The end-user's postal code