Skip to content
Skip to content

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

idstringalways

Download link id.

assetIdstringalways

The asset to download.

exerciseIdstringalways

The exercise the asset belongs to.

purpose"sync"always

Always sync: an import into your own storage.

urlstringalways

The media URL on the delivery host. Supports GET and HEAD with single byte ranges.

expiresAtstring (date-time)always

300 seconds after issue. Request a new download link afterwards.

mediaTypestringalways

The file's media type.

One of
video/mp4image/jpegimage/webpimage/png
bytesintegeralways

Size of the full file in bytes.

sha256stringalways

Verify the downloaded file against it.

versionstringalways

The asset revision served.

Returned or accepted by