Skip to main content
POST
Create an asset from a URL

Authorizations

X-API-Key
string
header
required

Partner API key (ck_…). Created by Interactive Layers; shown only once.

Body

application/json
title
string
required
Required string length: 1 - 200
url
string
required

HTTPS MP4, or a finite clear HLS playlist on an allowed CDN: a master or a media playlist, MPEG-TS or fMP4. From a master, the lowest-bandwidth video variant and its default audio are analysed.

Maximum string length: 4096
immutable
boolean
default:false

Attest the URL and all its segments are versioned and immutable.

ad_free
boolean
default:false

Attest the source contains no embedded ads.

Response

Successful Response

asset_id
string
required
title
string
required
source_kind
enum<string>
required
Available options:
upload,
mp4,
hls
version
string
required

Version of the source validated at import

status
enum<string>
required
Available options:
ready,
changed
ad_free
boolean
required
immutable
boolean
required
created_at
number
required

Unix timestamp in seconds

metadata
AssetMetadata · object
required
source
string | null
required

Redacted CDN source; null for uploads

playback_url
string
required

Private relative URL. Use the same authentication as the asset request.

thumbnail_url
string
required

Private relative URL for the thumbnail, if available

analysis
AssetAnalysis · object | null
required