Skip to content
Skip to content

Create deliveries

Creates download links for owned videos and posters in request order.

Owned or sample content
POST/v1/deliveries
curl --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 stringrequired

Owned 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 Deliveryalways
data[].idstringalways

Download link id.

data[].assetIdstringalways

The asset to download.

data[].exerciseIdstringalways

The exercise the asset belongs to.

data[].purpose"sync"always

Always sync: an import into your own storage.

data[].urlstringalways

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

data[].expiresAtstring (date-time)always

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

data[].mediaTypestringalways

The file's media type.

One of
video/mp4image/jpegimage/webpimage/png
data[].bytesintegeralways

Size of the full file in bytes.

data[].sha256stringalways

Verify the downloaded file against it.

data[].versionstringalways

The asset revision served.

metaMetaalways

Present on every successful response.

meta.requestIdstringalways

Quote this id when contacting support. Also sent as the X-Request-Id header.

meta.catalogRevisionstringalways

SHA-256 over the published catalog. Changes when the catalog is redeployed; cursors are bound to it.

meta.accountstring

sample 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.sampleSampleFacts

Present with account: sample. What the sample account holds and where the rest of the catalog can be bought.

meta.sample.exercisesintegeralways

Exercises the sample account owns.

meta.sample.catalogueTotalintegeralways

Published exercises in the catalog.

meta.sample.packsUrlstringalways

The 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

400
invalid_request

Invalid request or cursor.

401
invalid_api_keyauthentication_required

The 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.

403
asset_not_licensedpurchase_required

A purchase or ownership of the requested exercise is required.

404
not_found

The route or exercise was not found.

405
method_not_allowed

Use a supported HTTP method.

413
payload_too_large

The JSON body is too large.

415
unsupported_media_type

Send application/json.

429
rate_limit_exceededsample_busylink_limit_exceeded

About 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.

500
internal_error

Unexpected failure. Contact support with requestId if it persists.

503
asset_not_availabledelivery_unavailableapi_disabledapi_unavailable

Temporarily unavailable. Retry later.

Every code with its next step is on Errors.