Licenses
Activate license
Activate a license for a device.
AuthorizationBearer <token>
Your API key.
In: header
Header Parameters
License-Keystring
The license key.
productIdstring
The product ID of the license.
device
Response Body
application/json
application/json
curl -X POST "https://keyforge.dev/api/v1/licenses/activate" \ -H "License-Key: ABCDE-ABCDE-ABCDE-ABCDE-ABCDE" \ -H "Content-Type: application/json" \ -d '{ "productId": "p_123456", "device": { "identifier": "some_device_id", "name": "My computer name" } }'{
"key": "ABCDE-ABCDE-ABCDE-ABCDE-ABCDE",
"userId": "05d27bfb-61c7-45f7-9d07-09a41defc88a",
"productId": "p_123456",
"type": "perpetual",
"expiresAt": null,
"revoked": false,
"email": "[email protected]",
"maxDevices": 5,
"activeDevices": [
{
"identifier": "some_device_id",
"name": "My computer name",
"activationDate": "2024-05-19T18:39:33.000Z"
}
],
"createdAt": "2024-05-19T18:39:33.000Z"
}{
"error": {
"message": "License is revoked."
}
}