Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Get a download URL for any artifact

POST
/xeonr.updater.v1.UpdaterService/GetArtifactDownloadUrl

Returns the stored file's content URL for one artifact of a specific release, by platform and filename. Unlike the public download endpoints, it works for any release, not just the latest, which is how the console downloads older builds. A release that does not exist, or is on no target visible to the caller, and an artifact that does not exist, are NOT_FOUND. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's client_credentials token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the X-Updater-Token header and signed with the app's signing secret.

An API key is refused with PERMISSION_DENIED: this needs a signed-in person.

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketId?string
Length1 <= length
releaseId?string
Length1 <= length
platform?string
Length1 <= length
filename?string
Length1 <= length
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/GetArtifactDownloadUrl" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "downloadUrl": "https://pixel.upl.im/branches/br_4f1a9c2e7b3d5a60/releases/rel_2c7e9a1b4d6f8035/darwin/Pixel-1.4.2-mac.zip"
}

Get an app's hostnames POST

Returns every hostname the app answers on, read from its upl bucket's aliases: the slug's own hostname first (`pixel.upl.im` on production, `upl.fyi` elsewhere), then the others in upl's order. Each carries its `kind` (`slug`, `subdomain` or `custom`), whether it is the primary one, and its `status`; a custom domain also carries its verification time, any verification error and the `cname_target` its CNAME must point at. `public_url` is `https://` and the primary hostname, where the download page lives. Needs a signed-in person who can read the bucket in upl; the download page's `client_credentials` token gets `PERMISSION_DENIED`, and so does an API key.

Get an app's updater config POST

Returns the app's updater configuration from its bucket's `/config.json`: display name, every branch, the targets and distributions the caller may see, the login redirect URL, the logo URL (empty when no logo is uploaded), the updater's public base URL and whether the source is public. An app with no config yet returns an empty one. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. `signing_secret` is returned only to a signed-in person with write access, never to an API key or a read-only token. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.