Sign an offline license file for a machine. Like an activation, it uses a device slot, and the slot stays taken until the file expires. Requires an `admin` key or the `license:sign` grant; a product-bound key works only for its products. Refused while the workspace is in billing continuity or restricted mode.
Device Activations: Generating an offline key for a specific hostId (machine code) will consume a device activation slot, exactly like a standard online activation. This ensures that offline licenses respect your configured limits. Because a signed file keeps working offline until it expires, the slot stays taken until then: deactivating the device through the API or a customer-portal reset does not free it early (the deactivate call answers 409 with offlineValidUntil). A reset from your dashboard still frees it. Keep offline files short-lived with ttl or the product's maximum offline lifetime if you expect machines to change often.
Authorization header.Use a unique value to safely retry this request without repeating its effects.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dThe product ID. 22–256 characters.
The license key. 20–256 characters.
The machine code (hardware fingerprint) to bind the offline license to. Required. 1–64 characters.
Optional lifetime of the signed file in seconds, 60–315,360,000 (10 years). Required when the license has no expiry date and the product has no maximum offline lifetime; can't run past the license's expiry date.
The signed license file as a JSON string: `{ signedDate, signedKey, keyId, publicKeyFingerprint }`, where `signedKey` is an EdDSA (Ed25519) JWT.