Public REST API
A public REST API for Keyforge. No API key is needed to access the endpoints. Currently, you can only validate and activate licenses. It allows you to create a licensed app without any backend or API.
POST
/api/v1/public/licenses/validate
Validate a license
See if a license is valid.
Request Body
licenseKey
Requiredstring
The license key.
Example:"ABCDE-ABCDE-ABCDE-ABCDE-ABCDE"
deviceIdentifier
Requiredstring
The identifier of the device to validate the license for.
Example:"some_device_id"
productId
Requiredstring
The product ID to validate the license for.
Example:"p_123456"
Status code | Description |
---|---|
200 | Success |
400 | Bad Request |
The response to a license validation request.
POST
/api/v1/public/licenses/activate
Activate a license
Activate a license.
Request Body
licenseKey
Requiredstring
The key of the license to activate.
Example:"ABCDE-ABCDE-ABCDE-ABCDE-ABCDE"
deviceIdentifier
Requiredstring
A unique identifier of the device.
Example:"some_device_id"
deviceName
Requiredstring
The name of the device.
Example:"My computer name"
productId
Requiredstring
The ID of the product the license will be activated.
Example:"p_123456"
Status code | Description |
---|---|
200 | Success |
400 | Bad Request |
The response to a license activation request.