Pular para o conteúdo principal
POST
Create an asset from a URL

Autorizações

X-API-Key
string
header
obrigatório

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

Corpo

application/json
title
string
obrigatório
Required string length: 1 - 200
url
string
obrigatório

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
padrão:false

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

ad_free
boolean
padrão:false

Attest the source contains no embedded ads.

Resposta

Successful Response

asset_id
string
obrigatório
title
string
obrigatório
source_kind
enum<string>
obrigatório
Opções disponíveis:
upload,
mp4,
hls
version
string
obrigatório

Version of the source validated at import

status
enum<string>
obrigatório
Opções disponíveis:
ready,
changed
ad_free
boolean
obrigatório
immutable
boolean
obrigatório
created_at
number
obrigatório

Unix timestamp in seconds

metadata
AssetMetadata · object
obrigatório
source
string | null
obrigatório

Redacted CDN source; null for uploads

playback_url
string
obrigatório

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

thumbnail_url
string
obrigatório

Private relative URL for the thumbnail, if available

analysis
AssetAnalysis · object | null
obrigatório