Activate license

Activate a license. No API key is needed to access this endpoint.

POST
/api/v1/public/licenses/activate

Request Body

application/jsonRequired
licenseKeyRequiredstring

The key of the license to activate.

deviceIdentifierRequiredstring

A unique identifier of the device.

deviceNameRequiredstring

The name of the device.

productIdRequiredstring

The ID of the product the license will be activated.

curl -X POST "https://keyforge.dev/api/v1/public/licenses/activate" \
  -H "Content-Type: application/json" \
  -d '{
    "licenseKey": "ABCDE-ABCDE-ABCDE-ABCDE-ABCDE",
    "deviceIdentifier": "some_device_id",
    "deviceName": "My computer name",
    "productId": "p_123456"
  }'

Success

{
  "isValid": true,
  "licenseKey": "ABCDE-ABCDE-ABCDE-ABCDE-ABCDE"
}