The update and license API
The endpoints PluggedDesk itself talks to, for people who run a mirror, automate a deployment or want to know exactly what is sent.
Conventions
- The API is under
/api/v1, over HTTPS only. Every answer is JSON, except the installer itself. - An installation proves its entitlement with
Authorization: Bearer <entitlement>. Cookies are not read by the API. - A refusal has this shape, with a status code that matches:
{ "ok": false, "error": "seat_limit", "message": "All 3 seat(s) of this license are in use (…).", "ref": "9f2c41aa" }
error is stable and meant for programs. message is meant for people. ref, when present, is the reference of the
line in the site's audit trail.
- Requests are limited per network address. Over the limit, the answer is
429with aRetry-Afterheader.
An installation describes itself
Several requests carry a device:
{ "hash": "…43 characters…", "name": "OPS-LAPTOP-7", "platform": "win-x64", "version": "0.5.0" }
hash is the SHA-256, in base64url, of the text pluggeddesk-device: followed by an identifier that PluggedDesk makes
at random when it is first run. The identifier itself never leaves the computer, and is not derived from its hardware.
version must be a version (major.minor.patch, with an optional pre-release): its major and minor are the installation's
version line (0.9.3 is on 0.9), which a license covers (see Licenses, trials and devices).
Licenses and entitlements
POST /api/v1/licenses/activate
{ "key": "PD-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX", "device": { … } }
Activates the installation: a new seat, or the seat the installation already has. Answers:
{
"ok": true,
"token": "eyJhbGciOiJFUzI1NiIs…",
"entitlement": {
"id": "act_…", "kind": "license", "licensee": "…", "organization": "…",
"plan": "early-access", "planTitle": "Early access", "channels": ["stable"], "versionLine": "0.9",
"issued": "2026-09-29T08:00:00+00:00", "expires": "2026-10-29T08:00:00+00:00",
"seats": { "used": 1, "total": 1 }
}
}
The first activation of a license sets its versionLine to the installation's line; kind is license or staff.
error |
Status | Meaning |
|---|---|---|
license_unknown |
403 | The key is not known, or is mistyped. |
license_revoked |
403 | |
license_expired |
403 | |
seat_limit |
409 | Every seat is in use (one, unless the plan says more). The message names the computers. |
version_line |
409 | The license covers another version line. The message names it; the installation runs as not activated. |
licensing_unavailable |
503 | The site has no signing key configured. |
GET /api/v1/entitlements/current
With the bearer token. Says what the entitlement is today, from the site's records.
POST /api/v1/entitlements/refresh
With the bearer token, and { "device": { … } }. Answers like activate, with a new token. An expired token cannot be
refreshed: activate again. An installation updated past its license's version line is refused with version_line (409).
POST /api/v1/entitlements/deactivate
With the bearer token. Gives the seat back. The token stops working at once.
error |
Status | Meaning |
|---|---|---|
entitlement_expired |
401 | Activate again. |
entitlement_invalid |
401 | Not a token this site signed, or not for this site. |
entitlement_revoked |
401 | The installation was deactivated (by a person, or by itself after ninety days unseen). |
trial_not_activated |
401 | A trial token was presented. A trial is not an activation. |
Trial Mode
An installation that is not activated registers a trial for its machine (how trials work).
POST /api/v1/trials/start
{ "device": { … }, "machine": "…43 characters…" }
machine is the SHA-256, in base64url, of pluggeddesk-machine: followed by the machine's MachineGuid in lower case.
The machine's existing trial is answered when it has one; a trial is never restarted. Limited like activate.
A trial of PluggedTS, the PluggedOS session and workspace host, adds "product": "pluggedts". It is the machine's
PluggedTS trial, separate from its PluggedDesk trial (one of each per machine); its token says prd pluggedts, and
nothing of PluggedDesk's accepts it. GET /api/v1/trials/current?product=pluggedts and an extension request with
"product": "pluggedts" read it.
{
"ok": true,
"token": "eyJhbGciOiJFUzI1NiIs…",
"trial": {
"id": "trl_…", "started": "2026-10-16T08:00:00Z", "expires": "2026-11-15T08:00:00Z", "allowanceDays": 30,
"extensionRequested": false, "extensionGranted": false, "extensionRefused": false
}
}
GET /api/v1/trials/current
With the trial token as bearer, expired or not. Answers like start, with a fresh token: after an extension was granted,
expires and the token's exp are sixty days from the start.
POST /api/v1/trials/extension-request
With the trial token as bearer, and { "reason": "…" } (optional, up to 500 characters). Once per machine.
error |
Status | Meaning |
|---|---|---|
trial_missing |
401 | No trial token was presented. |
trial_invalid |
401 | Not a trial token this site signed. |
trial_unknown |
401 | The trial is gone (revoked). |
trial_revoked |
403 | The machine's trial was ended by Exprezoe. |
extension_requested |
409 | The machine already asked. |
The entitlement token
A JWS in compact form, signed with ES256. Its header has typ pd-ent+jwt and the kid of the signing key. Its claims:
| Claim | Meaning |
|---|---|
iss |
https://pluggeddesk.exprezoe.com |
aud |
pluggeddesk |
sub |
The activation. |
jti |
This token. |
iat, nbf, exp |
Issued, not valid before, expires. |
kind |
license, staff or trial |
lic, name, org, plan |
The license, the licensee, the organisation, the plan (trial for a trial). |
chn |
The release channels. |
dev |
The installation's hash. |
ver |
The version line the license covers (0.9). On a license token whose license has one; never on a staff token. |
mac |
The machine anchor. On every trial token. A trial token's exp is the end of the trial. |
prd |
The product, on a token for another product than PluggedDesk (pluggedts). PluggedDesk's own tokens have none, and PluggedDesk refuses a token that has one. |
PluggedDesk checks the signature by itself against this key, which is compiled into it:
| Key | Public key (SubjectPublicKeyInfo, base64) |
|---|---|
pluggeddesk-license-2026-09 |
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEyrz3xvrDYdbLn+DjQnc/yZ7od1pWDuzVZOTn8CDlRKb/D/G9HczymXXvEB5Tnt3ofINjCvPizE2zfxGsiK0tag== |
The update channel
GET /api/v1/updates/{channel}/{platform}/pluggeddesk-update.json
GET /api/v1/updates/{channel}/{platform}/pluggeddesk-update.json.sig
GET /api/v1/updates/{channel}/{platform}/{installer}
With the bearer token. channel is stable or preview; platform is win-x64.
A licensed installation is offered the newest release of its license's version line; a staff installation the
newest of all. A pre-release is offered for ninety days from its release date and then no more; while it is, its answers
carry X-PluggedDesk-Expires: <the day it expires, UTC>.
The manifest is served byte for byte as it was signed. It names its installer by file name only, so the installer is
read from beside the manifest, and a mirror can serve a release as it is. Both small files carry an ETag; the
installer supports ranges, so an interrupted download can be resumed.
error |
Status | Meaning |
|---|---|---|
channel_not_allowed |
403 | The entitlement does not include that channel. |
no_release |
404 | Nothing has been released on that channel, or nothing of the license's line. The message says which. |
GET /api/v1/releases
With the bearer token. Every release the entitlement includes, of its version line, newest first; a pre-release carries
expires. Expired pre-releases are not listed.
PluggedTS's update channel
GET /api/v1/updates/pluggedts/{channel}/{platform}/pluggedts-update.json
GET /api/v1/updates/pluggedts/{channel}/{platform}/pluggedts-update.json.sig
GET /api/v1/updates/pluggedts/{channel}/{platform}/PluggedTS.Setup.exe
No token: PluggedTS Community is free. The manifest is the same schema, signed with a PluggedTS release key, never a PluggedDesk one; PluggedTS checks the signature against the key compiled into it:
| Key | Public key (SubjectPublicKeyInfo, base64) |
|---|---|
pluggedts-release-2026-10 |
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdPXKZHTMCrDsmKVHoTWiSaql8djpuJ1yoJuEOs1hN/ZSJXzstyAViQf906QQkWxuVYZEnBK9+Ljsa7h8HvYTEQ== |
no_release (404) until PluggedTS's first release is published here.
The session arbiter
The session arbiter counts live remote sessions per license, trial machine or member of staff (one session at a time). It trusts only this site: PluggedDesk brings it a lease token from here.
POST /api/v1/arbiter/token
With an entitlement token or a trial token (expired or not) as bearer. Answers { "ok": true, "token": "…", "lease": { "sub": "lic:lic_…", "cap": 1, "expires": "…" } }. The lease token is a JWS, ES256, typ pd-lease+jwt, audience
plugged-session-arbiter, signed with a key of its own (kid pluggeddesk-arbiter-2026-10, never the license key):
| Claim | Meaning |
|---|---|
iss, aud, iat, exp |
This site, plugged-session-arbiter, issued, expires ten minutes later. |
sub |
lic:<license>, trial:<machine anchor> or staff:<subject>: whose sessions are counted together. |
dev, name |
The installation's hash and the computer's name (at most 40 characters). |
cap |
Sessions allowed at once: 1 for a one-device license or a trial, the plan's seats for a team, 0 for no limit (staff). |
error |
Status | Meaning |
|---|---|---|
arbiter_unavailable |
503 | The site has no arbiter key configured. |
| the entitlement and trial refusals above |
GET /api/v1/arbiter/keys
The arbiter's public key as a JWK set (kty EC, crv P-256, kid, x, y). Empty until the key is configured.
POST /api/v1/arbiter/events
For the arbiter only (its own bearer secret). A JSON list of journal lines, each { "at", "kind", "sub", "dev", "name", "otherName", "session" } with kind one of granted, refused, released, expired. A line already stored (the same
session, kind and moment) is not stored twice; the answer says how many were new. The lines are shown on the license's
page and the licensee's account page.
Staff sign-in
For people at Exprezoe, in place of a license key.
GET /api/v1/auth/identitysays whether staff sign-in is on, names the issuer and the client to sign in with, and says how recent the sign-in at the issuer must be, in seconds:maxAgeSeconds(PluggedDesk sends it asmax_age), by default the issuer's own limit of 30 days and 12 hours, so that a person signed in there is not asked again; andmaxAge, the same cut at a day, for clients released before 2026-10-15.POST /api/v1/auth/identity/challengewith{ "device": { … } }answers{ "nonce": "…", "expires": "…" }.- PluggedDesk signs in at the issuer in the system browser (authorization code with PKCE), with that nonce.
POST /api/v1/auth/identity/exchangewith{ "id_token": "…", "device": { … } }answers like activate.
The site accepts an ID token only when its nonce is a challenge the site issued to that installation and has not seen
used. It then checks the signature against the issuer's published keys (RS256 only), the issuer, the audience, the
lifetime, that the token is fresh, that the sign-in at the issuer is no older than maxAgeSeconds (auth_time), that a
second factor was used, and that the person is in a group that may use PluggedDesk.
When the issuer has changed its key, the first token signed with the new one is checked against the keys the issuer publishes at that moment. A token that names a key the issuer does not publish costs the site at most one read of the issuer's keys in thirty seconds.
error |
Status | Meaning |
|---|---|---|
identity_disabled |
503 | Staff sign-in is not switched on. |
challenge_unknown |
401 | The sign-in was not started with this site, or took longer than ten minutes. |
token_replayed |
409 | That sign-in was already used. |
token_invalid |
401 | The ID token could not be verified. |
stale_authentication |
401 | The sign-in at the issuer is older than maxAge, or the token does not say when it was made. |
mfa_required |
403 | No second factor was used. |
not_in_required_group |
403 | |
issuer_unavailable |
503 | The issuer's keys could not be read. |
What the site is
GET /api/v1/health answers { "ok": true } when the site and its records are reachable.
GET /api/v1/meta names the site's version and which of the above are switched on.