Licenses

Update license

Update an existing license.

PATCH
/api/v1/licenses
AuthorizationBearer <token>

Your API key.

In: header

Header Parameters

License-Keystring

The license key.

type?string

The type of the license. Can be perpetual or timed.

Value in"perpetual" | "timed"
maxDevices?integer

The maximum number of devices that can activate this license.

email?string

The email associated with the license.

expiresAt?string

The date when the license expires. Must be null for perpetual licenses.

revoked?boolean

Whether the license has been revoked.

Response Body

application/json

curl -X PATCH "https://keyforge.dev/api/v1/licenses" \  -H "License-Key: ABCDE-ABCDE-ABCDE-ABCDE-ABCDE" \  -H "Content-Type: application/json" \  -d '{}'
{
  "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"
}