Info
- App builds and the content apps download, by collection, channel and platform, under
/api/v2/releases. Paths below leave that part out
- Needs the Releases service on for the app, otherwise 403
service_disabled
- Base URL, headers, errors, lists, ETags and
Idempotency-Key work as on the API page
- Terms (collections, app releases, content updates, channels) are explained in Releases & Channels. The Unity client is Release Content
Terms
- Collection - a kind of content with its own releases, by key.
main (App) holds the app itself, build-data (Build data) the data content updates are built from. Others are e.g. DLC or localization
- App release - one app version in
main, e.g. 1.7.0, with its builds per platform
- Channel - e.g. production or beta, shared by all collections of the app. One is the default. A channel can fall back to another one
- Platform - a build target with a key, e.g.
android-vr
- Build - one upload of a release for a platform or for all platforms, named by its public ID
- Builds and content updates: see Start fields
Loading
- Callers
- Signed-in players and servers send their Bearer token
- Players who aren't signed in send only
X-App-Key. They load only channels and collections open to everyone. Limited to 240 calls a minute per network, calls with a token aren't limited
- Dedicated servers and anyone with a Releases role (Manager, Uploader, Tester) load everything. A player who hosts a server loads with its server token what that player may
- A token the hub turns down answers 401
GET /channels - the channels the caller may load: name, default. A list, limit 50 by default, at most 200
GET /collections - the collections the caller may load: key, name, icon. A list like channels
GET /resolve?collection=…&channel=…&platform=…&app_version=…&app_build=…&version=…&pick=… - the build to load, with signed file links
platform, channel, app_version and app_build come from the build's X-App-Platform, X-App-Channel, X-App-Version and X-App-Build headers, the query overrides them
- A platform is required.
collection defaults to main, channel to the default channel
- App collection (
main): app_build is required, the app's build key (the hash of its built-in Addressables catalog). Returns the update the channel serves for that app release, then the channels it falls back to, then the content the build shipped with. When several app releases share the build key, the newest one counts
pick=shipped gives an app build the content it shipped with, whatever the channels serve. pick=channel is the default, other values answer 400
- Other collections: the release on the channel that fits
app_version (and app_build when the release was made for one) most closely, the one put on last among equals, along the same fallback chain
- Most specific first: made for the app build, then for one app version, then for a range, then for the platform over all platforms
- Only channels of the chain the caller may load count
version picks that release instead while a channel serves it or served it before, e.g. to renew the links of content already loaded. A release taken off its channel can't be renewed
- Returns
collection, channel (the one that served it; for shipped content the one asked for or the default), platform, version, kind, notes, expires_at and files (path, size, hash, url)
kind says what was given: shipped (what the app build shipped with), update (a content update for it) or release (another collection)
- Nothing fits, an unknown collection, channel or platform, or one the caller may not load: 404
release_not_found. A missing platform, or on main a missing app_build: 400 invalid_request
- A weak ETag of the release, not of its links.
If-None-Match answers 304 while the release stays the same, so ask without it to get new links
- File links
url is a signed link, valid until expires_at (6 h), with range support. Add &name=… to save the file under that name
- Checked without the database, so a CDN can sit in front
Uploading
- Two ways in
- CI: an upload key (
shu_…) in X-Upload-Key. A global key (admins make them in Service Hub › Releases) also needs the app's key in X-App-Key, which picks the app. An app's own key may send its own app key, another app's gets 403
- Editor or app: the Bearer token of a Release Manager or Release Uploader of the app. Server tokens can't upload
- A missing or unknown key or token answers 401, a token without the role 403