Skip to content

Client Licensing Endpoints

[!IMPORTANT] SDK-Only Endpoints: These endpoints are consumed exclusively by the official Seatling Client SDKs (Node.js / Electron, Go, Rust, C++17 / JUCE). Do not hand-roll raw HTTP calls against these routes. This reference documents the exact wire payloads, claims, and RFC 9457 error contracts for security reviews, firewall allowlisting, and GDPR data-flow audits.


  • Route: POST /v1/licenses/activate
  • SDK Method: activate(licenseKey) / ActivateDetailed(licenseKey)
  • Content-Type: application/json (errors: application/problem+json)

Activates a machine seat using an EdDSA Proof-of-Possession JWT (typ: seatling-activate-pop-v2+jwt). Supports hardened bidirectional self-healing on the same canonical host OS (reinstalls rotate the device key in-place without consuming an extra seat; minor hardware upgrades update the HWID vector when attested by the hardware-sealed key).

{
"token": "eyJhbGciOiJFZERTQSIsInR5cCI6InNlYXRsaW5nLWFjdGl2YXRlLXBvcC12Mitqd3QifQ..."
}

Decoded ActivationPopClaims (additionalProperties: false)

Section titled “Decoded ActivationPopClaims (additionalProperties: false)”
  • iss: Base64-encoded device Ed25519 public key
  • sub: License key
  • aud: Target API endpoint URL
  • hwid: 64-character lowercase domain-scoped HKDF-SHA256 composite hardware fingerprint
  • hwid_components: { cpu?, mobo?, disk?, os_uuid? } (each present slot is a 64-character lowercase domain-scoped HKDF-SHA256 hash; unavailable slots are omitted and score 0 quorum points)
  • app_version: Semantic application version (e.g., "2.4.1")
  • attestation_tier: "hardware_sealed" or "software"
  • os: Canonical host OS enum ("windows", "macos", or "linux")
  • os_version: Coarse host OS name and version (max 64 UTF-8 bytes, e.g., "macOS 15.1")
  • iat, nbf, exp, jti: Standard JWT timestamps and nonce
  • supported_kids: Sorted list of workspace signing key IDs trusted by the client binary

Returns { "token": "<EdDSA JWT>" } with typ: seatling-license-v2+jwt signed by the workspace Ed25519 key (kid in header). Decoded LicenseJwtClaims include iss, sub, aud, product_id, seat_id, masked_key ("SEAT-****-****-4444"), masked buyer_email ("b***@gmail.com"), hwid, device_key, os, app_version, iat, exp, offline_grace_days, status (active | suspended | revoked), and entitlements.

Error Responses (application/problem+json)

Section titled “Error Responses (application/problem+json)”
  • 400 Bad Request: Invalid PoP JWT, expired timestamp, or schema validation failure (ValidationProblemDetails).
  • 403 Forbidden:
    • SeatsExhaustedProblem: Seat quota full; includes seats_active, seat_limit, masked buyer_email, and static portal_url (https://portal.seatling.app).
    • VersionNotEntitledProblem: app_version exceeds license version entitlement.
    • KeyRevokedProblem / LicenseSuspendedProblem: Signing key revoked or license suspended/revoked.
  • 404 Not Found: License key not found.
  • 409 Conflict: RequiresPortalDeactivationProblem — concurrent active session anomaly, cross-OS key clone lock, or rotation quota exceeded; includes static portal_url (https://portal.seatling.app).

  • Route: POST /v1/licenses/heartbeat
  • SDK Method: Automatic background worker + heartbeatNow()
  • Content-Type: application/json (errors: application/problem+json)

Renews the offline grace lease, enforces canonical OS binding and revocation state, and records pseudonymized seat runtime health (os, os_version, app_version).

{
"token": "eyJhbGciOiJFZERTQSIsInR5cCI6InNlYXRsaW5nLWhlYXJ0YmVhdC1jaGFsbGVuZ2UtdjIrand0In0..."
}

Decoded HeartbeatChallengeClaims (additionalProperties: false)

Section titled “Decoded HeartbeatChallengeClaims (additionalProperties: false)”
  • iss, sub, aud, seat_id, hwid
  • session_id: 128-bit random per-process session identifier
  • app_version, os, os_version
  • iat, nbf, exp, jti (random challenge nonce), supported_kids

Returns { "token": "<EdDSA JWT>", "portal_url"?: "https://portal.seatling.app" } where token (typ: seatling-heartbeat-ack-v2+jwt) is counter-signed by the workspace key and echoes the client’s jti nonce alongside updated status (active | locked | suspended | revoked) and entitlements.

Error Responses (application/problem+json)

Section titled “Error Responses (application/problem+json)”
  • 400 Bad Request: Malformed heartbeat payload or expired timestamp (±5m window).
  • 401 Unauthorized: Invalid device signature or seat key mismatch.
  • 403 Forbidden: Version not entitled, key revoked, or license suspended/revoked.
  • 409 Conflict: RequiresPortalDeactivationProblem — concurrent use anomaly detected.

  • Route: POST /v1/licenses/deactivate
  • SDK Method: deactivate() / Deactivate()
  • Content-Type: application/json (errors: application/problem+json)

Explicitly releases the allocated machine seat slot using a device-signed EdDSA Deactivation Proof JWT (typ: seatling-deactivate-v2+jwt).

{
"token": "eyJhbGciOiJFZERTQSIsInR5cCI6InNlYXRsaW5nLWRlYWN0aXZhdGUtdjIrand0In0..."
}

Decoded DeactivationClaims (additionalProperties: false)

Section titled “Decoded DeactivationClaims (additionalProperties: false)”
  • iss (Base64 device public key), sub (license key), seat_id, hwid, iat, nbf, exp, jti
{
"success": true,
"message": "Seat successfully deactivated"
}

Error Responses (application/problem+json)

Section titled “Error Responses (application/problem+json)”
  • 400 Bad Request: Invalid deactivation token or expired timestamp.
  • 401 Unauthorized: Invalid device signature or seat not bound to device key.
  • 404 Not Found: Seat already deactivated, freed, or absent on server.

Data Minimization Guarantee (Art. 5(1)(c) GDPR)

Section titled “Data Minimization Guarantee (Art. 5(1)(c) GDPR)”

All three endpoints enforce strict schema validation (additionalProperties: false):

  • No device_name, OS hostname, or OS username fields exist in the wire protocol.
  • No plaintext buyer emails are returned in API responses (buyer_email is always masked, e.g., b***@gmail.com).
  • No magic-link tokens or license keys are ever embedded in portal_url responses.

See Privacy & GDPR Compliance for full legal basis and Art. 13 disclosure guidance.