Get license token

Get a new signed token for a license. License tokens need to be configured for the product to use this endpoint.

POST
/api/v1/public/licenses/token

Request Body

application/jsonRequired
licenseKeyRequiredstring

The license key.

deviceIdentifierRequiredstring

The identifier of the current device.

productIdRequiredstring | string[]

The product ID of the license. Can also be an array if your app supports multiple products.

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"
  }'

Success. The license token is returned.

{
  "isValid": true,
  "token": "..."
}