Delivery
A short-lived download link. url has the form {DELIVERY_WORKER_URL}/media/{grantId}?t={token}; it is the authorization, so never send the API key to it and never log or share it.
Fields
idstringalwaysDownload link id.
assetIdstringalwaysThe asset to download.
exerciseIdstringalwaysThe exercise the asset belongs to.
purpose"sync"alwaysAlways sync: an import into your own storage.
urlstringalwaysThe media URL on the delivery host. Supports GET and HEAD with single byte ranges.
expiresAtstring (date-time)always300 seconds after issue. Request a new download link afterwards.
mediaTypestringalwaysThe file's media type.
- One of
video/mp4image/jpegimage/webpimage/png
bytesintegeralwaysSize of the full file in bytes.
sha256stringalwaysVerify the downloaded file against it.
versionstringalwaysThe asset revision served.