Pular para o conteúdo principal
POST
Create and start a source

Autorizações

X-API-Key
string
header
obrigatório

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

Corpo

application/json
name
string
padrão:Source
Required string length: 1 - 80
hls_url
string | null

Live HLS media playlist (https, .m3u8).

Maximum string length: 2048
youtube_url
string | null

YouTube live or video URL.

Maximum string length: 300
mode
enum<string>
padrão:signal

signal: program untouched, break markers enriched with the targeting signal. ssai: Interactive Layers replaces break segments and adds in-band supers.

Opções disponíveis:
signal,
ssai
marker_profile
enum<string>
padrão:interactivelayers

interactivelayers: EXT-X-DATERANGE CLASS="com.interactivelayers.signal"; interactivelayers_cue: also #EXT-X-ASSET + #EXT-X-CUE-OUT/IN; ottera: experimental alias of interactivelayers_cue. clipma and clipma_cue are deprecated aliases of interactivelayers and interactivelayers_cue.

Opções disponíveis:
interactivelayers,
interactivelayers_cue,
ottera,
clipma,
clipma_cue
output_delay_seconds
number
padrão:30

Output delay behind the origin (time for the AI to analyse).

Intervalo obrigatório: 6 <= x <= 300
break_interval_seconds
integer
padrão:600

Spacing of the breaks Interactive Layers opens when break_mode=auto (multiple of 30).

Intervalo obrigatório: 60 <= x <= 3600
break_mode
enum<string>
padrão:origin

origin: breaks signalled by the origin (CUE-OUT/DATERANGE). auto: Interactive Layers opens a break every break_interval_seconds.

Opções disponíveis:
origin,
auto

Resposta

Successful Response

source_id
string
obrigatório
name
string
obrigatório
status
string
obrigatório
source_kind
string
obrigatório
mode
string
obrigatório
marker_profile
string
obrigatório
break_mode
string
obrigatório
output_delay_seconds
number
obrigatório
break_interval_seconds
integer
obrigatório
output_hls_url
string
obrigatório

Enriched output manifest (no auth: the source id is the capability).

created_at
number
obrigatório
status_reason
string | null
playback_url
string | null