Skip to content
Check for an update

Check for an update

Tells your application which release it should install instead of the version it runs.

GET /v1/products/{product}/update

Use cases

  • Check for a new version when your application starts, or on a schedule.
  • Get the file for the device, with its SHA-256 and its signature, in one request.
  • Let a user join the beta, or keep your application on one major version.

For the steps from the check to the installation, see Updates and download links. An application that uses Tauri, Sparkle, WinSparkle or electron-updater reads its own update feed instead. See Updater feeds.

Update selection

Send the version that your application runs. The answer offers the newest release with a higher version. When no release has a higher version, update is null. This is a normal answer and not an error.

  • Seatify compares versions by semantic version rules. 1.3.0 is higher than 1.3.0-beta.2. See Newest release.
  • The version that your application sends does not need to be a release in Seatify. A version that is higher than every release gets update set to null.
  • The update check never offers a lower version.
  • Build metadata does not count. The version 1.2.0+43 is not an update for 1.2.0+42.
  • A draft release, a yanked release and a file whose upload has not finished are never offered.

Channels and constraints

Without channel, the check uses the channel of the version that your application runs. It sees that channel and every more stable channel.

Version in the checkReleases that the check sees
2.1.0stable
2.1.0-rc.1rc and stable
2.1.0-beta.1beta, rc and stable
2.1.0-alpha.1alpha, beta, rc and stable
2.1.0-nightly.5dev only
  • channel replaces the channel of the version. Send channel=beta to let a stable build join the beta.
  • To leave the beta, send channel=stable. Your application keeps its beta build until a stable release with a higher version is published.
  • A dev build is never offered a stable release. Send channel=stable to move it to stable releases.
  • constraint keeps the check on one version line. The constraint 2 offers only 2.x.y versions. The constraint 2.1 offers only 2.1.y versions.

File selection

platform, arch and filetype choose the file in update.artifact. Send platform and arch together, or leave out both. See Platforms and architectures.

  • A release without a matching file is skipped. The check offers the newest release that has one. A fix for Windows only is not offered to macOS.
  • A universal build matches any architecture. A build for the exact architecture wins over a universal build.
  • A file without a platform or an architecture never matches a check that names one.
  • If several files of the release match, update.artifact is null. The release is still offered. Add filetype, such as filetype=dmg, or choose a file from update.artifacts.
  • A check without platform, arch and filetype gets update.artifact only when the release has one file.

Download the file from update.artifact.url. See Download an artifact. Verify the file before your application installs it. See Verifying files.

License checks

Check for an update checks the license key when the request sends one. A refused license answers with the status 200. valid is false, reason names the refusal, and update is null:

{
  "valid": false,
  "reason": "suspended",
  "current": "1.1.0",
  "update": null
}

The reason is product_mismatch, suspended or expired. See License checks.

A license that expired under the Perpetual fallback rule is not refused. The check offers only the releases that were published on or before the expiry date of the license. A backdated release counts as published on its backdated date.

Activity

  • Each check with a license key records an update check on the license. A check that offers no update is recorded too. See Activity.
  • A refused check is recorded with its reason.
  • A check without a license key, on an open product, records no activity.
  • A request that answers with a status other than 200 records no activity.

Authentication

Send the license key of the customer. A product with the open distribution setting does not require a key. See Authentication.

Request

{product} is the ID of the product. The request has no body.

HeaderRequiredDescription
Seatify-License-KeyFor a licensed productThe license key of the customer. For an open product, a key that the request sends must be valid.
Seatify-NonceNoA new random value that the signature includes. See Signed responses.
Seatify-Signing-KeyNoThe key ID of the signing key in your application. See Signed responses.
ParameterTypeRequiredDescription
versionstringYesThe version that your application runs, such as 1.1.0 or 1.2.0-beta.1. Send it without a v prefix. In the query string, encode the plus sign of build metadata as %2B, such as version=2.1.0%2B42.
platformstringNoThe platform of the device: darwin, windows, linux, ios, android or freebsd. Send it together with arch.
archstringNoThe architecture of the device: amd64, arm64, x86, arm or universal. Send it together with platform.
filetypestringNoThe file type, such as dmg or zip. Use it when a release has several files for one platform and architecture.
channelstringNoThe channel that the check uses. The check sees this channel and every more stable channel. The dev channel sees only dev releases. The default is the channel of version.
constraintstringNoA major version, such as 2, or a major and minor version, such as 2.1. The constraint 2 allows only 2.x.y versions. The constraint 2.1 allows only 2.1.y versions.

Response

FieldTypeDescription
validbooleanfalse when the license is refused. It is true when there is no update.
reasonstring or nullThe reason of the refusal. It is null when valid is true. See License checks.
currentstringThe version from the request.
updateobject or nullThe release to install. See Update. It is null when no release has a higher version, or when valid is false.

Update

FieldTypeDescription
idstringThe ID of the release.
versionstringThe version to install.
channelstringThe channel of the release.
namestring or nullThe name of the release.
notesstring or nullThe release notes. Your application can show them to the user.
published_atstringThe time when the release was first published.
artifactsarrayEvery file of the release. Each file has the fields in Artifact. Only files whose upload has finished are listed.
artifactobject or nullThe file for the platform, the architecture and the file type of the check. It has the same fields. It is null when no single file matches. See File selection.

Errors

StatusReasonDescription
400A version is required. It must be a semantic version such as 1.2.0 or 1.2.0-beta.1, without a v prefix.version is missing or is not a semantic version.
400The platform and the arch are given together, or neither is.The request sends only one of platform and arch. The errors field names both.
400The platform must be darwin, windows, linux, ios, android or freebsd.platform has another value.
400The arch must be amd64, arm64, x86, arm or universal.arch has another value.
400The channel must be stable, rc, beta, alpha or dev.channel has another value.
400The constraint must be a major version, or a major and minor version, such as 2 or 2.1.constraint is not a major version or a major and minor version.
400The signing key is not known.Your organization has no signing key with the ID in Seatify-Signing-Key.
400The nonce must be at most 255 characters.The value of Seatify-Nonce is too long.
401A license key is required.The product is licensed, and the request has no Seatify-License-Key header, or the header is empty.
401The license key is not valid.No license in your account has this key. This applies to an open product too.
404The product was not found.No product has this ID.
429There are too many requests. Try again later.See Rate limits.

No update is not an error. See Update selection.

The error of a query parameter is in the errors field, under the name of the parameter. See Errors.

Example

Check for an update of a macOS build that runs version 1.1.0.

curl "https://dist.seatify.dev/v1/products/$PRODUCT_ID/update?version=1.1.0&platform=darwin&arch=arm64" \
  -H "Seatify-License-Key: $LICENSE_KEY"

The answer offers 1.4.0. The release has one macOS file, a universal build, so update.artifact names it:

{
  "valid": true,
  "reason": null,
  "current": "1.1.0",
  "update": {
    "id": "<release id>",
    "version": "1.4.0",
    "channel": "stable",
    "name": null,
    "notes": "Updates through Sparkle.",
    "published_at": "2026-09-21T23:00:00Z",
    "artifacts": [
      {
        "id": "<artifact id>",
        "filename": "BEACON-1.4.0.zip",
        "filetype": "zip",
        "platform": "darwin",
        "arch": "universal",
        "content_type": "application/zip",
        "size": 53,
        "sha256": "<sha256>",
        "signature": "<signature>",
        "signing_key_id": "<signing key id>",
        "vendor_signature": "<vendor signature>",
        "url": "https://dist.seatify.dev/v1/products/<product id>/releases/1.4.0/artifacts/BEACON-1.4.0.zip"
      },
      {
        "id": "<artifact id>",
        "filename": "BEACON-1.4.0-arm64-setup.exe",
        "filetype": "exe",
        "platform": "windows",
        "arch": "arm64",
        "content_type": "application/vnd.microsoft.portable-executable",
        "size": 50,
        "sha256": "<sha256>",
        "signature": "<signature>",
        "signing_key_id": "<signing key id>",
        "vendor_signature": "<vendor signature>",
        "url": "https://dist.seatify.dev/v1/products/<product id>/releases/1.4.0/artifacts/BEACON-1.4.0-arm64-setup.exe"
      }
    ],
    "artifact": {
      "id": "<artifact id>",
      "filename": "BEACON-1.4.0.zip",
      "filetype": "zip",
      "platform": "darwin",
      "arch": "universal",
      "content_type": "application/zip",
      "size": 53,
      "sha256": "<sha256>",
      "signature": "<signature>",
      "signing_key_id": "<signing key id>",
      "vendor_signature": "<vendor signature>",
      "url": "https://dist.seatify.dev/v1/products/<product id>/releases/1.4.0/artifacts/BEACON-1.4.0.zip"
    }
  }
}

When your application runs the newest version, update is null:

{
  "valid": true,
  "reason": null,
  "current": "1.4.0",
  "update": null
}