Skip to content
Download an artifact

Download an artifact

Redirects to a signed link that downloads one artifact of a release.

GET /v1/products/{product}/releases/{version}/artifacts/{filename}

Use cases

The url of each artifact in these answers is the URL of this endpoint. To link to the newest file on a download page, use the stable download link.

Download link

A download answers with the status 303 and no body. The Location header is a signed download link. HTTP clients and browsers follow the redirect by default.

  • The link expires. Request this endpoint again for a new link.
  • The link does not need a license key.
  • The link accepts a Range header, so your application can resume a download that stopped.
  • The file is saved under its filename.
  • An expired link answers with the status 403 and the text The link has expired.

The redirect is not signed. Verify the file with its SHA-256 and its signature before your application installs it. See Verifying files.

Versions and filenames

{version} is the exact version of the release, such as 2.1.0 or 2.1.0-beta.1. Send the version without a v prefix. A version with build metadata, such as 2.1.0+42, can have the plus sign as is or encoded as %2B.

latest is not a version on this endpoint. It answers with the status 404. To download the newest file, use the stable download link.

{filename} is the filename of the artifact. The filename is case-sensitive. Encode characters such as spaces in the path.

A draft release, a yanked release and a file whose upload has not finished answer with the status 404. That is the same answer as a version or a filename that does not exist.

License checks

Download an artifact checks the license key when the request sends one. A refused license answers with the status 403 and this body:

{
  "valid": false,
  "reason": "suspended"
}

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

A license that expired under the Perpetual fallback rule can download only the releases that were published on or before its expiry date. A backdated release counts as published on its backdated date. A release that was published later answers with the reason release_not_covered.

Seatify checks the license before it looks for the release. A refused license gets the status 403, also for a version or a filename that does not exist.

Download allowance

On the Free plan, a download is refused when your account used the download allowance of the month. The answer has the status 403 and this body:

{
  "valid": false,
  "reason": "download_limit_reached"
}

Seatify checks the allowance before the license checks and before it looks for the release. The refusal also applies to an open product without a license key. A refused download is not counted, and it records no activity. See Downloads.

Downloads and activity

  • Each redirect counts as one download of the artifact. A refused request and a request that answers 404 are not counted.
  • A request with a license key records a download on the license. A refused license is recorded too. See Activity.
  • A request without a license key, on an open product, records no activity. A request that answers 404 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. See Versions and filenames for {version} and {filename}. The request has no body and no query parameters.

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.

The redirect is not signed. The API ignores the Seatify-Nonce and Seatify-Signing-Key headers on this endpoint.

Response

A download answers with the status 303 and no body.

HeaderDescription
LocationThe signed download link. See Download link.
Cache-ControlThe value is no-store. Do not cache the redirect.

A refused license answers with the status 403 and a JSON body.

FieldTypeDescription
validbooleanThe value is always false.
reasonstringThe reason of the refusal. See License checks.

Errors

StatusReasonDescription
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.
403product_mismatch, suspended, expired or release_not_coveredThe license is refused. See License checks.
403download_limit_reachedYour account used the download allowance of the Free plan for this month. See Download allowance.
404The product was not found.No product has this ID.
404The artifact was not found.No published release has this version, or the release has no finished file with this filename.
429There are too many requests. Try again later.See Rate limits.

See Errors.

Example

Download the macOS file of version 1.4.0.

curl --fail --location --remote-name \
  -H "Seatify-License-Key: $LICENSE_KEY" \
  https://dist.seatify.dev/v1/products/$PRODUCT_ID/releases/1.4.0/artifacts/BEACON-1.4.0.zip

The first answer is the redirect:

HTTP/1.1 303 See Other
Cache-Control: no-store
Location: <signed download link>

A suspended license answers with the status 403:

{
  "valid": false,
  "reason": "suspended"
}