Public API

Validate license

Verify if a license is valid.

POST
/api/v1/public/licenses/validate
licenseKeystring

The license key.

deviceIdentifierstring

The identifier of the device to validate the license for.

productIdstring|

The product ID of the license. Can be a single string or an array of strings.

Response Body

application/json

curl -X POST "https://keyforge.dev/api/v1/public/licenses/validate" \  -H "Content-Type: application/json" \  -d '{    "licenseKey": "ABCDE-ABCDE-ABCDE-ABCDE-ABCDE",    "deviceIdentifier": "some_device_id",    "productId": "p_123456"  }'
{
  "isValid": true,
  "device": {
    "identifier": "some_device_id",
    "name": "My computer name",
    "activationDate": "2024-05-19T18:39:33.000Z"
  },
  "license": {
    "key": "ABCDE-ABCDE-ABCDE-ABCDE-ABCDE",
    "productId": "p_123456",
    "type": "perpetual",
    "revoked": false,
    "maxDevices": 5,
    "expiresAt": null,
    "createdAt": "2024-05-19T18:39:33.000Z"
  }
}
Empty