Create deliveries
Creates download links for owned videos and posters in request order.
/v1/deliveriescurl --fail-with-body -sS -X POST \ -H "Authorization: Bearer $MOVEKIT_API_KEY" \ -H 'Content-Type: application/json' \ --data '{"assetIds":["ex75-video","ex75-poster"]}' \ "https://api.movekit.com/v1/deliveries"Authorization: Bearer $MOVEKIT_API_KEY.
The whole request fails if any asset is unknown, unowned or unavailable.
Request body
application/json, required. Schema BatchDeliveryRequest.
assetIdsarray of stringrequiredOwned video and poster asset ids. Download links come back in this order.
Response 201
One download link per asset id, in request order.
{ "data": [ { "id": "grant_69e604c7-2f38-485c-89b3-24d61ab2af0e", "assetId": "ex75-video", "exerciseId": "75", "purpose": "sync", "url": "https://media.movekit.com/media/grant_69e604c7-2f38-485c-89b3-24d61ab2af0e?t=eyJnIjoiZ3JhbnRfNjllNjA0YzcifQ.Lqvtn5kUEJG22znYCC-jXAWyPJMsAP1Po2eNG279Yp", "expiresAt": "2026-10-04T09:17:44.000Z", "mediaType": "video/mp4", "bytes": 1843302, "sha256": "d74cedbbfbc4d6d93afd73cbbf4ca7e6d4ef1d876d12be14913c617974ba8109",dataarray of Deliveryalwaysdata[].idstringalwaysDownload link id.
data[].assetIdstringalwaysThe asset to download.
data[].exerciseIdstringalwaysThe exercise the asset belongs to.
data[].purpose"sync"alwaysAlways sync: an import into your own storage.
data[].urlstringalwaysThe media URL on the delivery host. Supports GET and HEAD with single byte ranges.
data[].expiresAtstring (date-time)always300 seconds after issue. Request a new download link afterwards.
data[].mediaTypestringalwaysThe file's media type.
- One of
video/mp4image/jpegimage/webpimage/png
data[].bytesintegeralwaysSize of the full file in bytes.
data[].sha256stringalwaysVerify the downloaded file against it.
data[].versionstringalwaysThe asset revision served.
metaMetaalwaysPresent on every successful response.
meta.requestIdstringalwaysQuote this id when contacting support. Also sent as the X-Request-Id header.
meta.catalogRevisionstringalwaysSHA-256 over the published catalog. Changes when the catalog is redeployed; cursors are bound to it.
meta.accountstringsample when the request carried no API key: it was answered as the sample account. On a page of GET /v1/exercises answered with a key, acct_ and 16 hexadecimal characters: an opaque id of the account the key belongs to, made at random the first time the account lists exercises and never changed, the same for every key of that account and on every request, so an importer can tell a key of another account. It is not the account's internal id and says nothing about it.
meta.sampleSampleFactsPresent with account: sample. What the sample account holds and where the rest of the catalog can be bought.
meta.sample.exercisesintegeralwaysExercises the sample account owns.
meta.sample.catalogueTotalintegeralwaysPublished exercises in the catalog.
meta.sample.packsUrlstringalwaysThe packs page. A key from any purchase answers with what that account owns.
Details
- With no key, the sample exercises are the owned ones.
Errors
invalid_requestInvalid request or cursor.
invalid_api_keyauthentication_requiredThe key sent is not a live API key, or this route needs one. A request with no Authorization header is answered as the sample account where the route allows it.
asset_not_licensedpurchase_requiredA purchase or ownership of the requested exercise is required.
not_foundThe route or exercise was not found.
method_not_allowedUse a supported HTTP method.
payload_too_largeThe JSON body is too large.
unsupported_media_typeSend application/json.
rate_limit_exceededsample_busylink_limit_exceededAbout 120 requests a minute per account; wait for Retry-After before retrying. Without a key, sample_busy means the keyless sample is used up for today: send a key, or try again after 00:00 UTC. link_limit_exceeded means one file had its 200 download links for today: request the others without error.assetId, and that one after 00:00 UTC.
internal_errorUnexpected failure. Contact support with requestId if it persists.
asset_not_availabledelivery_unavailableapi_disabledapi_unavailableTemporarily unavailable. Retry later.
Every code with its next step is on Errors.