Skip to Content
Xeonr Developer Docs

The update protocol

The plain-HTTP endpoints installed apps read, from electron-updater and Squirrel feeds, the check endpoint the SDK calls, release notes, downloads and private targets.

Installed apps never call the admin API. They read the update protocol, plain HTTP under the app's bucket id:

https://updater.xeonr.io/<bucket>/…

or under the app's own domain, when one is set in the console. Every path below names a target, the channel an install follows. A public target answers anyone. A private one answers 401 unauthorized unless the request carries an updater token naming it; see Private targets.

The endpoints are not part of the generated API reference, which covers the admin API only.

Electron feeds

electron-updater's generic provider, Squirrel.Mac and Squirrel.Windows read these. Point the provider at the platform directory of your target:

electron-builder.yml
publish:
  provider: generic
  url: https://updater.xeonr.io/<bucket>/update/<target>/${os}
Path under /<bucket>/update/<target>/Answer
darwin/latest-mac.ymlelectron-updater's macOS feed
win32/latest.ymlelectron-updater's NSIS feed
linux/latest-linux.ymlelectron-updater's Linux feed
win32-squirrel/RELEASESSquirrel.Windows' release list
darwin/<current-version>Squirrel.Mac's check: 204 when nothing is newer, else 200 with {"url", "name", "notes", "pub_date"} for the newest .zip
<platform>/<filename>The artifact itself, as a redirect to storage

electron-builder's ${os} is mac, win or linux, so set the URL per platform if you build for more than one, or use darwin, win32 and linux directly. A feed always describes the newest release published to that target. An artifact URL names a build, so it keeps working after newer releases are published, until its release is rescinded or deleted.

The check endpoint

@xeonr/updater-sdk, the Electron-side SDK, asks one question for the app and all its modules at once:

POST /<bucket>/update/<target>/check
Content-Type: application/json

{
  "platform": "darwin",
  "base_version": "1.4.0",
  "modules": [{ "name": "exporter", "version": "2.0.1" }]
}
{
  "base_update": {
    "version": "1.5.0",
    "url": "https://updater.xeonr.io/<bucket>/update/stable/darwin/MyApp-1.5.0-mac.zip",
    "notes": "## Features\n- …",
    "pub_date": "2026-11-01T12:00:00Z"
  },
  "modules": [
    {
      "name": "exporter",
      "action": "update",
      "version": "2.1.0",
      "url": "https://updater.xeonr.io/<bucket>/update/stable/modules/exporter/2.1.0/darwin/exporter.zip",
      "sha512": "…"
    }
  ]
}

platform and base_version are required; a request without them answers 400. base_update is absent when the app is current. Each module's action is install, update or remove, and a remove carries a reason. A module release is offered only to app versions at or above its minimum base version.

Targets and release notes

RequestAnswer
GET /<bucket>/targets{"targets": [{"name", "public"}]}: the public targets, plus the private ones the request's token names
GET /<bucket>/update/<target>/releases/<version>{"version", "target", "branch", "notes", "pub_date", "rescinded"} for a release published to that target, so an app can show what's new in the version it is running

Release notes are visible only through a target the release was published to, and with the same access rules as the target.

Plain binaries

CLIs and other plain executables use <goos>-<goarch> platforms, a channel manifest per platform, latest permalinks and generated install scripts. Distribute a CLI describes them:

PathAnswer
/<bucket>/install.sh, /<bucket>/install.ps1The app's install script
/<bucket>/update/<target>/<goos>-<goarch>/manifest.jsonThe channel manifest
/<bucket>/update/<target>/manifest.jsonThe same, for the target's main platform
/<bucket>/update/<target>/manifest-<goos>-<goarch>.jsonAn alias of the per-platform manifest
/<bucket>/update/<target>/<goos>-<goarch>/latest, latest.sha256, latest.binThe newest archive, its checksum line, and the newest raw binary

Downloads and the app's page

PathAnswer
/<bucket>/download/<distribution-id>An installer or store link from the app's distributions. The URL stays the same when the file is republished.
/<bucket>/logoThe app's logo

Private targets

Every endpoint above accepts an updater token on a private target, as Authorization: Bearer <token>, or as ?token=<token> where a header cannot be set. An updater token is a JWT you sign (HS256) with the app's signing secret, with a targets claim naming the targets it opens. Authentication describes minting one.

Prefer the header. A token in a URL ends up in server logs, browser history and Referer headers. For a browser download, which cannot send a header, exchange the token for a download ticket first:

POST /<bucket>/download-ticket
Authorization: Bearer <updater token>
Content-Type: application/json

{ "path": "/<bucket>/update/beta/darwin/MyApp-1.5.0.dmg" }
{ "url": "https://updater.xeonr.io/<bucket>/update/beta/darwin/MyApp-1.5.0.dmg?ticket=…", "expiresAt": "2026-11-04T12:02:00Z" }

A ticket opens that one path, for two minutes, with no more access than the token it was made from. path may be an artifact under /update/ or a /download/<distribution-id>. The app's public download page uses tickets for its private files.

On this page