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.
What Happens During SDK Activation
Section titled “What Happens During SDK Activation”When you call activate(licenseKey), the SDK performs the following steps automatically:
- Zero-Prompt Hardware Anchor: Computes the domain-scoped, license-keyed
HKDF-SHA2564-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. - Signed Proof-of-Possession Exchange: Signs an EdDSA Proof-of-Possession token (
seatling-activate-pop-v2+jwt) and sends it toPOST /v1/licenses/activate. - 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+jwtoffline 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.
- If the license has an available seat slot, Seatling atomically binds the machine and returns a server-signed
- Handling Seat Limits & Portal Recovery:
SeatsExhausted(403 Forbidden): All seat slots are occupied on other devices. The SDK returnsseatsActive,seatLimit, a maskedbuyerEmailhint (e.g.,b***@gmail.com), and the staticportalUrl(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_namestrings during activation. Only coarseos(windows|macos|linux), coarseos_version,app_version, and domain-scopedHKDF-SHA256pseudonymized 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}`);}package main
import ( "fmt" "github.com/seatling/seatling-sdk-go/v2")
func activateMachine(client *seatling.Client, licenseKey string) error { res, err := client.ActivateDetailed(licenseKey) if err != nil { return err } if !res.Success { if res.Status == seatling.StatusSeatsExhausted || res.Status == seatling.StatusRequiresPortalDeactivation { return fmt.Errorf("seat limit reached (%d/%d): manage devices at %s", res.SeatsActive, res.SeatLimit, res.PortalURL) } return fmt.Errorf("activation failed (%s): %s", res.Status, res.Message) } fmt.Printf("✓ Machine activated! Seat ID: %s\n", res.SeatID) return nil}use seatling::{SeatlingClient, StatusCode};
pub fn activate_machine(client: &SeatlingClient, license_key: &str) -> Result<(), String> { let res = client.activate(license_key); if !res.success { if matches!( res.status, StatusCode::SeatsExhausted | StatusCode::RequiresPortalDeactivation ) { return Err(format!( "Seat limit reached. Manage active devices at: {:?}", res.portal_url )); } return Err(format!("Activation failed ({}): {}", res.status.as_str(), res.message)); } println!("✓ Machine activated! Seat ID: {:?}", res.seat_id); Ok(())}#include <seatling/seatling.hpp>#include <iostream>
bool activateMachine(seatling::SeatlingClient& client, const std::string& licenseKey) { if (client.activate(licenseKey)) { std::cout << "✓ Machine activated!" << std::endl; return true; }
auto st = client.status(); if (st == seatling::StatusCode::SeatsExhausted || st == seatling::StatusCode::RequiresPortalDeactivation) { std::cerr << "Seat limit reached. Deactivate an old device at https://portal.seatling.app" << std::endl; } return false;}