Skip to content

1. Hardware Seat Activation

When a user unlocks your application on a computer for the first time, your application activates a machine seat using an official Seatling Client SDK (@seatling/node, seatling-sdk-go, seatling for Rust, or seatling.hpp for C++17).

[!IMPORTANT] Official SDK Required: Seat activation must be performed through an official Seatling Client SDK. The SDK handles hardware-sealed Ed25519 key generation, 4-component weighted HWID hashing, Proof-of-Possession JWT signing, and local lease persistence automatically. Direct raw HTTP calls are not supported.


When you call activate(licenseKey), the SDK performs the following steps automatically:

  1. Zero-Prompt Hardware Anchor: Computes the domain-scoped, license-keyed HKDF-SHA256 4-component hardware fingerprint (mobo, cpu, disk, os_uuid; unavailable slots omitted) and creates or unseals the machine-bound Ed25519 keypair without triggering OS password prompts.
  2. Signed Proof-of-Possession Exchange: Signs an EdDSA Proof-of-Possession token (seatling-activate-pop-v2+jwt) and sends it to POST /v1/licenses/activate.
  3. Self-Healing & Seat Allocation:
    • If the license has an available seat slot, Seatling atomically binds the machine and returns a server-signed seatling-license-v2+jwt offline lease.
    • If the user reinstalled the app or cleared their cache on the same physical machine and OS, Seatling automatically re-links the existing seat without burning an extra slot.
  4. Handling Seat Limits & Portal Recovery:
    • SeatsExhausted (403 Forbidden): All seat slots are occupied on other devices. The SDK returns seatsActive, seatLimit, a masked buyerEmail hint (e.g., b***@gmail.com), and the static portalUrl (https://portal.seatling.app)—never leaking license keys or magic-link tokens in URLs.
    • RequiresPortalDeactivation (409 Conflict): A concurrent session anomaly or key-rotation quota requires the buyer to release a seat in the Customer Portal (https://portal.seatling.app).

[!TIP] Built-In Data Minimization (Art. 5(1)(c) GDPR): Seatling SDKs intentionally never collect or transmit OS hostnames, OS usernames, MAC addresses, or custom device_name strings during activation. Only coarse os (windows | macos | linux), coarse os_version, app_version, and domain-scoped HKDF-SHA256 pseudonymized hardware hashes are transmitted. See Privacy & GDPR Compliance for end-user disclosure guidance.


Code Examples: Activating a Seat & Handling Seat Limits

Section titled “Code Examples: Activating a Seat & Handling Seat Limits”
import { SeatlingClient } from '@seatling/node';
export async function activateMachine(seatling: SeatlingClient, licenseKey: string) {
const result = await seatling.activate(licenseKey);
if (!result.success) {
if (
(result.status === 'SEATS_EXHAUSTED' || result.status === 'REQUIRES_PORTAL_DEACTIVATION') &&
result.portalUrl
) {
// Open static Customer Portal URL (https://portal.seatling.app) in user's browser
window.open(result.portalUrl, '_blank');
alert('Seat limit reached. Please deactivate an old machine in the Customer Portal.');
return;
}
throw new Error(`License activation failed (${result.status}): ${result.message}`);
}
// Log only the opaque seat ID — never log the raw licenseKey (Art. 32 GDPR)
console.log(`✓ Machine activated! Seat ID: ${result.seatId}`);
}