Public API
Get license token
Get a new signed token for a license. License tokens need to be configured for the product to use this endpoint.
licenseKeystring
The license key.
deviceIdentifierstring
The identifier of the current device.
productIdstring|
The product ID of the license. Can be a single string or an array of strings.
Response Body
application/json
application/json
curl -X POST "https://keyforge.dev/api/v1/public/licenses/token" \ -H "Content-Type: application/json" \ -d '{ "licenseKey": "ABCDE-ABCDE-ABCDE-ABCDE-ABCDE", "deviceIdentifier": "some_device_id", "productId": "p_123456" }'{
"isValid": true,
"token": "..."
}{
"error": {
"code": "invalid_license",
"message": "Invalid license."
}
}