Licensify API

Licensify exposes a simple and complete REST and HTTP API for managing all the licensing and security workflow of your application.

API endpoint

Our API endpoint is :

https://api.licensify.io/{VERSION}/{TARGET}/{REQUEST}/

The path must be completed with the version of the API. The actual version is : 1.0

{TARGET} is the target endpoint : license, account, checkout, file

License API

The License API is composed by these actions :

  • Activate
  • Check
  • Deactivate
  • Cancel

Activate

A license can be activated with a GET request. This is the format of the request :

https://api.licensify.io/1.0/license/activate/{PRODUCT}/{LICENSE}/{IDENTIFIER}

There are 2 variables :

  • PRODUCT : the id of the product
  • LICENSE : the id of the license
  • IDENTIFIER : the identifier of this license. It could be a domain name, an url, an ip address, or an unique identifier.

The result of this request is a JSON object :

{
"success": true,
"status": "Ok",
"code": 0,
"message": "Identifier activated : {IDENTIFIER}",
"ask": "https://api.licensify.io/1.0/activate/xxxxxx/xxxxxxxxxxxxxxxxxxxxx/xxxxxxx",
"data": {activated: "IDENTIFIER"},
"version": "1.0",
"date": "1557953650602"
}

If "code" is different of 0, a problem occured :

  • License is not valid
  • License activation reaches the max quantity
  • License expired

File API

The File API is composed by these actions :

  • Get

Get

A file attached to a product can be retrieved with a GET request. This is the format of the request :

https://api.licensify.io/1.0/file/get/{LICENSE}/{IDENTIFIER}/{FILE_SLUG}

There are 3 variables :

  • LICENSE : the id of the license
  • IDENTIFIER : the identifier of this license. It could be a domain name, an url, an ip address, or an unique identifier.
  • FILE_SLUG : the slug of the file you want to get. This slug is generated by Licensify and accessible in the dashboard, or with the API.

The result of this request is a JSON object :

{
"success": true,
"status": "Ok",
"code": 0,
"message": "File get ok",
"ask": "https://api.licensify.io/1.0/file/get/xxxxxxxxxxxxxxxxxxxxx/xxxxxxx",
"data": {BASE64_STRING},
"version": "1.0",
"date": "1557953650602"
}

If "code" is different of 0, a problem occured :

  • License is not valid
  • License is not activated for this identifier
  • This file doesn't exist

Checkout API

The License API is composed by these actions :

  • Checkout

Widget API

The License API is composed by these actions :

  • Simple
  • Full