Fetch a video
curl --request GET \
--url https://api.vturb.com/v1/videos/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vturb.com/v1/videos/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vturb.com/v1/videos/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vturb.com/v1/videos/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vturb.com/v1/videos/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vturb.com/v1/videos/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vturb.com/v1/videos/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "652f2b1e8f1b2c3d4e5f6a7b",
"name": "Landing hero",
"description": "Hero above the fold",
"folder_id": "66a0c1d2e3f4a5b6c7d8e9f0",
"status": "ready",
"controls": {
"backward": false,
"big_play": true,
"forward": false,
"fullscreen": true,
"play_pause": true,
"seekbar": true,
"time": true,
"volume": true,
"fake_bar": false,
"speed": true
},
"call_actions": {
"enabled": true,
"items": [
{
"base": {
"name": "CTA principal",
"type": "outside_video",
"active": true
},
"window": {
"start": 45,
"end": 120,
"persist_on_video_end": true,
"show_to_returning_viewer": false
},
"action": {
"content": "Comprar agora",
"url": "https://example.com/checkout",
"open_in_new_tab": true,
"html": "<strong>Comprar agora</strong>",
"as_html": false
},
"scroll": {
"scroll_enabled": true,
"scroll_type": "auto",
"scroll_offset": 100
},
"image": {
"image_as_button": false,
"image_url": "https://example.com/cta.png",
"image_styles": {
"height": 40,
"width": 160,
"opacity": 100
}
},
"delay": {
"delay": false,
"delay_options": {
"query": ".buy",
"query_type": "class"
}
},
"design": {
"typography": {
"family": "Inter",
"letter_spacing": 0,
"line_height": 1.2,
"size": 16,
"weight": 600
},
"styles": {
"background_color": "#1890FF",
"background_hover_color": "#096DD9",
"text_color": "#FFFFFF",
"text_hover_color": "#F0F0F0",
"border_radius": 8,
"padding": {
"binding": true,
"values": [
12,
24,
12,
24
]
},
"shadow_enabled": true,
"shadow": {
"blur": 12,
"color": "#00000040",
"horizontal": 0,
"vertical": 4,
"spread": 2
}
},
"animation": {
"type": "pulse"
},
"rich_element": {
"type": "button",
"width": 100,
"height": 40,
"x": 0,
"y": 0,
"opacity": 100,
"order": 1,
"rotation": 0
}
},
"id": "652f2b1e8f1b2c3d4e5f0003"
}
]
},
"alternative_video": {
"enabled": true,
"id": "507f191e810c19729de860ea"
},
"traffic_filter": {
"fallback_video_id": "652f2b1e8f1b2c3d4e5f6a7c",
"token": "gate_7f3c1a",
"languages": [
"pt",
"en"
],
"countries": [
"BR",
"US"
],
"devices": [
"desktop",
"mobile"
],
"query_params": [
"utm_source"
],
"block_proxy": true,
"enabled": true
},
"styles": {
"background_color": "#1890FF",
"foreground_color": "#FFFFFF",
"border_radius": 12,
"linear_gradient": {
"angle": 90,
"primary_color": "#FFFFFF",
"primary_stop": 0,
"secondary_color": "#5C68A2",
"secondary_stop": 100,
"enabled": true
}
},
"general": {
"currency": "BRL",
"pitch_time": 120,
"preload_type": "netflix",
"start_quality": "auto"
},
"immersive_mode": {
"desktop": true,
"disable_scrolling": false,
"expand_on_play": true,
"minimize_on_pause": false,
"mobile": true,
"enabled": true
},
"mini_hooks": {
"elements": [
{
"base": {
"name": "Scarcity badge",
"type": "image",
"active": true
},
"window": {
"start": 12,
"end": 48
},
"layout": {
"x": -1,
"y": -1,
"width": 1933.632,
"height": 1079.794,
"rotation": 0,
"opacity": 1,
"order": 1
},
"content": {
"src": "https://static.vturb.com/badge.png",
"alt": "Only 7 left",
"value": null
},
"style": {
"align": null,
"background_color": null,
"border_radius": null,
"padding": null,
"text_color": null
},
"typography": {
"family": null,
"size": null,
"weight": null
},
"counter": {
"color": null,
"font_size": null,
"font_weight": null
},
"id": "652f2b1e8f1b2c3d4e5f0004"
},
{
"base": {
"name": "Offer countdown",
"type": "countdown-text",
"active": true
},
"window": {
"start": 60,
"end": 180
},
"layout": {
"x": 240,
"y": 820,
"width": 0,
"height": 0,
"rotation": 0,
"opacity": 1,
"order": 2
},
"content": {
"src": null,
"alt": null,
"value": "Offer ends in {1:30}"
},
"style": {
"align": "center",
"background_color": "#18cc33",
"border_radius": 8,
"padding": [
8.2,
16.38,
8.2,
16.38
],
"text_color": "#FFFFFF"
},
"typography": {
"family": "Inter",
"size": 30.72,
"weight": 400
},
"counter": {
"color": "#FF0000",
"font_size": 30.72,
"font_weight": 700
},
"id": "652f2b1e8f1b2c3d4e5f0005"
}
],
"enabled": true
},
"pixels": {
"items": [
{
"base": {
"name": "Compra",
"type": "facebook"
},
"tag": {
"id": "1234567890123456",
"value": "Compra",
"html": "<script>window.dataLayer.push({ event: 'compra' })</script>"
},
"dispatch": {
"active": true,
"threshold": 30,
"mode": "time"
},
"id": "652f2b1e8f1b2c3d4e5f0002"
}
],
"enabled": true
},
"playback": {
"disable_pause": false,
"scroll_to_action_in": 30,
"smart_pause": true,
"action_after_finish": {
"type": "loop",
"start": 5
},
"enabled": true
},
"subtitle": {
"control": true,
"track": {
"name": "pt-br.vtt",
"url": "https://scripts.converteai.net/org/players/652f2b1e8f1b2c3d4e5f6a7b/subtitle.vtt"
},
"style": {
"font_size": "16px",
"color": "#FFFFFF",
"background_color": "#000000",
"text_align": "center",
"bottom": "20px",
"max_width": "80%",
"show_by_default": true
},
"enabled": true
},
"thumbsniper": {
"background_color": "#101010",
"images": {
"start": "https://static.vturb.com/players/652f2b1e/start.jpg",
"pause": "https://static.vturb.com/players/652f2b1e/pause.jpg",
"finish": "https://static.vturb.com/players/652f2b1e/finish.jpg"
},
"cards": [
{
"base": {
"name": "Oferta principal",
"image": "https://static.vturb.com/players/652f2b1e/card.png"
},
"window": {
"start": 30,
"end": 90
},
"button": {
"active": true,
"text": "Quero agora",
"url": "https://example.com/checkout",
"new_tab": true,
"style": {
"size": "md",
"position": "bc",
"text_color": "#FFFFFF",
"background_color": "#1890FF",
"background_hover_color": "#096DD9"
}
},
"id": "652f2b1e8f1b2c3d4e5f0001"
}
],
"enabled": true
},
"turbo": {
"enabled": true,
"mode": "single",
"speed": 1.2,
"speed_start": 1.2,
"speed_end": 1.5,
"winner": 1.3
},
"headline": {
"enabled": true,
"mode": "single",
"active_number": 2,
"variants": [
{
"base": {
"name": "Hero copy",
"number": 2,
"active": true
},
"content": {
"kind": "image",
"responsive": true,
"url_desktop": "https://cdn.vturb.com/h/2-d.png",
"url_mobile": "https://cdn.vturb.com/h/2-m.png",
"html": "<h1>Buy now</h1>",
"css": "color: #fff;"
},
"style": {
"typography": {
"family": "Inter"
},
"layout": {
"width": "80%"
}
},
"id": "652f2b1e8f1b2c3d4e5f0201"
},
{
"base": {
"name": "Hero html",
"number": 3,
"active": false
},
"content": {
"kind": "html",
"responsive": false,
"url_desktop": null,
"url_mobile": null,
"html": "<h1>Buy now</h1>",
"css": null
},
"style": {
"typography": {},
"layout": {}
},
"id": "652f2b1e8f1b2c3d4e5f0202"
}
]
},
"progress_bar": {
"height": 12,
"use_base_color": false,
"current_color": "#0000FF",
"color": "#0000FF",
"enabled": true
},
"resume": {
"disable_pause": false,
"styles": {
"background_color": "#1890FF",
"foreground_color": "#FFFFFF"
},
"texts": {
"play": "Keep watching",
"replay": "Replay",
"title": "You already started"
},
"enabled": true
},
"smart_autoplay": {
"enabled": true,
"mode": "single",
"active_number": 2,
"variants": [
{
"base": {
"name": "Preview A",
"number": 2,
"version": "2",
"template": "classic",
"configuration_kind": "custom",
"template_name": null,
"position": null
},
"playback": {
"start_at": 1.5,
"end_at": 6,
"auto_unmute": true,
"animation": {
"kind": "fade"
}
},
"styles": {
"background_color": "#000000",
"foreground_color": "#FFFFFF"
},
"texts": {
"top": "Your video",
"bottom": "starts now"
},
"elements": [
{
"content": {
"type": "box",
"src": null,
"alt": null,
"value": null
},
"style": {
"color": "rgba(9, 150, 46, 0.75)",
"border_radius": 15.9,
"align": null
},
"border": {
"size": 3.9,
"color": "#FFFFFF",
"type": "solid"
},
"typography": {
"size": null,
"weight": null
},
"layout": {
"order": 1,
"x": 528,
"y": 296,
"width": 864,
"height": 487.95,
"rotation": 0,
"opacity": 1
},
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_2_el_1"
},
{
"content": {
"type": "text",
"src": null,
"alt": null,
"value": "Your video already started"
},
"style": {
"color": "#FFFFFF",
"border_radius": null,
"align": "center"
},
"border": {
"size": null,
"color": null,
"type": null
},
"typography": {
"size": 53.25,
"weight": "700"
},
"layout": {
"order": 2,
"x": 528,
"y": 342.6,
"width": 864,
"height": 81,
"rotation": 0,
"opacity": 1
},
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_2_el_2"
},
{
"content": {
"type": "image",
"src": "https://cdn.vturb.com/sa/sound.png",
"alt": "Click to hear",
"value": null
},
"style": {
"color": null,
"border_radius": null,
"align": null
},
"border": {
"size": null,
"color": null,
"type": null
},
"typography": {
"size": null,
"weight": null
},
"layout": {
"order": 3,
"x": 823.95,
"y": 451.65,
"width": 271.95,
"height": 192,
"rotation": 0,
"opacity": 1
},
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_2_el_3"
}
],
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_2"
},
{
"template_name": "discrete",
"template_position": "top-left",
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_4"
},
{
"base": {
"name": "Preview B",
"number": 3,
"version": "2",
"template": null,
"configuration_kind": "custom",
"template_name": null,
"position": null
},
"playback": {
"start_at": null,
"end_at": null,
"auto_unmute": false,
"animation": null
},
"styles": {
"background_color": null,
"foreground_color": null
},
"texts": {
"top": null,
"bottom": null
},
"elements": [],
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_3"
}
]
}
}{
"type": "https://docs.vturb.com/errors/unauthorized",
"code": "unauthorized",
"message": "Missing or invalid API credential. Send a vt_ token in the Authorization header.",
"request_id": "00000000-0000-0000-0000-000000000000"
}{
"type": "https://docs.vturb.com/errors/org_not_enabled",
"code": "org_not_enabled",
"message": "Your organization is not enabled for this API.",
"request_id": "00000000-0000-0000-0000-000000000000"
}{
"type": "https://docs.vturb.com/errors/not_found",
"code": "not_found",
"message": "Resource not found.",
"request_id": "00000000-0000-0000-0000-000000000000"
}Authorizations
Paste your VTurb API token (vt_...). Sent as Authorization: Bearer <token>.
Path Parameters
Response
The video with its configuration set.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The gate in front of the video: a viewer who fails any rule is served fallback_video_id instead. It does nothing unless enabled is true and that fallback is set.
Show child attributes
Show child attributes
The player's base look: brand color, text/icon color over it, corner radius in pixels, optional gradient. Colors are CSS strings kept exactly as sent.
Show child attributes
Show child attributes
Standalone settings: currency for revenue metrics, pitch_time the second the offer is made, preload_type the loading screen, start_quality the starting rendition.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Timed overlays drawn on top of the video — artwork and countdowns with a schedule. With enabled off the player draws nothing.
Show child attributes
Show child attributes
Third-party tracking the player fires while the video plays. enabled gates the whole object — with it off the player fires nothing, whatever items holds.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Still images shown whenever no frame is playing, plus timed cards on top. Not the video's own thumbnail, which is set apart from these.
Show child attributes
Show child attributes
Playback speed the player applies on its own instead of leaving the viewer at 1x. mode says if the rate is set by hand or under an A/B test; the tabs follow it.
- single
- auto_test
Show child attributes
Show child attributes
The copy drawn above the player. Picked by hand or by an A/B test — mode says which, active_number which variant is served.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The "keep watching" modal a returning viewer meets. enabled switches it on; everything else applies only while it is on.
Show child attributes
Show child attributes
The animated preview that plays before the video itself. enabled switches it on; mode says how the served variant is chosen.
Show child attributes
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api.vturb.com/v1/videos/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vturb.com/v1/videos/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vturb.com/v1/videos/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vturb.com/v1/videos/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vturb.com/v1/videos/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vturb.com/v1/videos/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vturb.com/v1/videos/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "652f2b1e8f1b2c3d4e5f6a7b",
"name": "Landing hero",
"description": "Hero above the fold",
"folder_id": "66a0c1d2e3f4a5b6c7d8e9f0",
"status": "ready",
"controls": {
"backward": false,
"big_play": true,
"forward": false,
"fullscreen": true,
"play_pause": true,
"seekbar": true,
"time": true,
"volume": true,
"fake_bar": false,
"speed": true
},
"call_actions": {
"enabled": true,
"items": [
{
"base": {
"name": "CTA principal",
"type": "outside_video",
"active": true
},
"window": {
"start": 45,
"end": 120,
"persist_on_video_end": true,
"show_to_returning_viewer": false
},
"action": {
"content": "Comprar agora",
"url": "https://example.com/checkout",
"open_in_new_tab": true,
"html": "<strong>Comprar agora</strong>",
"as_html": false
},
"scroll": {
"scroll_enabled": true,
"scroll_type": "auto",
"scroll_offset": 100
},
"image": {
"image_as_button": false,
"image_url": "https://example.com/cta.png",
"image_styles": {
"height": 40,
"width": 160,
"opacity": 100
}
},
"delay": {
"delay": false,
"delay_options": {
"query": ".buy",
"query_type": "class"
}
},
"design": {
"typography": {
"family": "Inter",
"letter_spacing": 0,
"line_height": 1.2,
"size": 16,
"weight": 600
},
"styles": {
"background_color": "#1890FF",
"background_hover_color": "#096DD9",
"text_color": "#FFFFFF",
"text_hover_color": "#F0F0F0",
"border_radius": 8,
"padding": {
"binding": true,
"values": [
12,
24,
12,
24
]
},
"shadow_enabled": true,
"shadow": {
"blur": 12,
"color": "#00000040",
"horizontal": 0,
"vertical": 4,
"spread": 2
}
},
"animation": {
"type": "pulse"
},
"rich_element": {
"type": "button",
"width": 100,
"height": 40,
"x": 0,
"y": 0,
"opacity": 100,
"order": 1,
"rotation": 0
}
},
"id": "652f2b1e8f1b2c3d4e5f0003"
}
]
},
"alternative_video": {
"enabled": true,
"id": "507f191e810c19729de860ea"
},
"traffic_filter": {
"fallback_video_id": "652f2b1e8f1b2c3d4e5f6a7c",
"token": "gate_7f3c1a",
"languages": [
"pt",
"en"
],
"countries": [
"BR",
"US"
],
"devices": [
"desktop",
"mobile"
],
"query_params": [
"utm_source"
],
"block_proxy": true,
"enabled": true
},
"styles": {
"background_color": "#1890FF",
"foreground_color": "#FFFFFF",
"border_radius": 12,
"linear_gradient": {
"angle": 90,
"primary_color": "#FFFFFF",
"primary_stop": 0,
"secondary_color": "#5C68A2",
"secondary_stop": 100,
"enabled": true
}
},
"general": {
"currency": "BRL",
"pitch_time": 120,
"preload_type": "netflix",
"start_quality": "auto"
},
"immersive_mode": {
"desktop": true,
"disable_scrolling": false,
"expand_on_play": true,
"minimize_on_pause": false,
"mobile": true,
"enabled": true
},
"mini_hooks": {
"elements": [
{
"base": {
"name": "Scarcity badge",
"type": "image",
"active": true
},
"window": {
"start": 12,
"end": 48
},
"layout": {
"x": -1,
"y": -1,
"width": 1933.632,
"height": 1079.794,
"rotation": 0,
"opacity": 1,
"order": 1
},
"content": {
"src": "https://static.vturb.com/badge.png",
"alt": "Only 7 left",
"value": null
},
"style": {
"align": null,
"background_color": null,
"border_radius": null,
"padding": null,
"text_color": null
},
"typography": {
"family": null,
"size": null,
"weight": null
},
"counter": {
"color": null,
"font_size": null,
"font_weight": null
},
"id": "652f2b1e8f1b2c3d4e5f0004"
},
{
"base": {
"name": "Offer countdown",
"type": "countdown-text",
"active": true
},
"window": {
"start": 60,
"end": 180
},
"layout": {
"x": 240,
"y": 820,
"width": 0,
"height": 0,
"rotation": 0,
"opacity": 1,
"order": 2
},
"content": {
"src": null,
"alt": null,
"value": "Offer ends in {1:30}"
},
"style": {
"align": "center",
"background_color": "#18cc33",
"border_radius": 8,
"padding": [
8.2,
16.38,
8.2,
16.38
],
"text_color": "#FFFFFF"
},
"typography": {
"family": "Inter",
"size": 30.72,
"weight": 400
},
"counter": {
"color": "#FF0000",
"font_size": 30.72,
"font_weight": 700
},
"id": "652f2b1e8f1b2c3d4e5f0005"
}
],
"enabled": true
},
"pixels": {
"items": [
{
"base": {
"name": "Compra",
"type": "facebook"
},
"tag": {
"id": "1234567890123456",
"value": "Compra",
"html": "<script>window.dataLayer.push({ event: 'compra' })</script>"
},
"dispatch": {
"active": true,
"threshold": 30,
"mode": "time"
},
"id": "652f2b1e8f1b2c3d4e5f0002"
}
],
"enabled": true
},
"playback": {
"disable_pause": false,
"scroll_to_action_in": 30,
"smart_pause": true,
"action_after_finish": {
"type": "loop",
"start": 5
},
"enabled": true
},
"subtitle": {
"control": true,
"track": {
"name": "pt-br.vtt",
"url": "https://scripts.converteai.net/org/players/652f2b1e8f1b2c3d4e5f6a7b/subtitle.vtt"
},
"style": {
"font_size": "16px",
"color": "#FFFFFF",
"background_color": "#000000",
"text_align": "center",
"bottom": "20px",
"max_width": "80%",
"show_by_default": true
},
"enabled": true
},
"thumbsniper": {
"background_color": "#101010",
"images": {
"start": "https://static.vturb.com/players/652f2b1e/start.jpg",
"pause": "https://static.vturb.com/players/652f2b1e/pause.jpg",
"finish": "https://static.vturb.com/players/652f2b1e/finish.jpg"
},
"cards": [
{
"base": {
"name": "Oferta principal",
"image": "https://static.vturb.com/players/652f2b1e/card.png"
},
"window": {
"start": 30,
"end": 90
},
"button": {
"active": true,
"text": "Quero agora",
"url": "https://example.com/checkout",
"new_tab": true,
"style": {
"size": "md",
"position": "bc",
"text_color": "#FFFFFF",
"background_color": "#1890FF",
"background_hover_color": "#096DD9"
}
},
"id": "652f2b1e8f1b2c3d4e5f0001"
}
],
"enabled": true
},
"turbo": {
"enabled": true,
"mode": "single",
"speed": 1.2,
"speed_start": 1.2,
"speed_end": 1.5,
"winner": 1.3
},
"headline": {
"enabled": true,
"mode": "single",
"active_number": 2,
"variants": [
{
"base": {
"name": "Hero copy",
"number": 2,
"active": true
},
"content": {
"kind": "image",
"responsive": true,
"url_desktop": "https://cdn.vturb.com/h/2-d.png",
"url_mobile": "https://cdn.vturb.com/h/2-m.png",
"html": "<h1>Buy now</h1>",
"css": "color: #fff;"
},
"style": {
"typography": {
"family": "Inter"
},
"layout": {
"width": "80%"
}
},
"id": "652f2b1e8f1b2c3d4e5f0201"
},
{
"base": {
"name": "Hero html",
"number": 3,
"active": false
},
"content": {
"kind": "html",
"responsive": false,
"url_desktop": null,
"url_mobile": null,
"html": "<h1>Buy now</h1>",
"css": null
},
"style": {
"typography": {},
"layout": {}
},
"id": "652f2b1e8f1b2c3d4e5f0202"
}
]
},
"progress_bar": {
"height": 12,
"use_base_color": false,
"current_color": "#0000FF",
"color": "#0000FF",
"enabled": true
},
"resume": {
"disable_pause": false,
"styles": {
"background_color": "#1890FF",
"foreground_color": "#FFFFFF"
},
"texts": {
"play": "Keep watching",
"replay": "Replay",
"title": "You already started"
},
"enabled": true
},
"smart_autoplay": {
"enabled": true,
"mode": "single",
"active_number": 2,
"variants": [
{
"base": {
"name": "Preview A",
"number": 2,
"version": "2",
"template": "classic",
"configuration_kind": "custom",
"template_name": null,
"position": null
},
"playback": {
"start_at": 1.5,
"end_at": 6,
"auto_unmute": true,
"animation": {
"kind": "fade"
}
},
"styles": {
"background_color": "#000000",
"foreground_color": "#FFFFFF"
},
"texts": {
"top": "Your video",
"bottom": "starts now"
},
"elements": [
{
"content": {
"type": "box",
"src": null,
"alt": null,
"value": null
},
"style": {
"color": "rgba(9, 150, 46, 0.75)",
"border_radius": 15.9,
"align": null
},
"border": {
"size": 3.9,
"color": "#FFFFFF",
"type": "solid"
},
"typography": {
"size": null,
"weight": null
},
"layout": {
"order": 1,
"x": 528,
"y": 296,
"width": 864,
"height": 487.95,
"rotation": 0,
"opacity": 1
},
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_2_el_1"
},
{
"content": {
"type": "text",
"src": null,
"alt": null,
"value": "Your video already started"
},
"style": {
"color": "#FFFFFF",
"border_radius": null,
"align": "center"
},
"border": {
"size": null,
"color": null,
"type": null
},
"typography": {
"size": 53.25,
"weight": "700"
},
"layout": {
"order": 2,
"x": 528,
"y": 342.6,
"width": 864,
"height": 81,
"rotation": 0,
"opacity": 1
},
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_2_el_2"
},
{
"content": {
"type": "image",
"src": "https://cdn.vturb.com/sa/sound.png",
"alt": "Click to hear",
"value": null
},
"style": {
"color": null,
"border_radius": null,
"align": null
},
"border": {
"size": null,
"color": null,
"type": null
},
"typography": {
"size": null,
"weight": null
},
"layout": {
"order": 3,
"x": 823.95,
"y": 451.65,
"width": 271.95,
"height": 192,
"rotation": 0,
"opacity": 1
},
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_2_el_3"
}
],
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_2"
},
{
"template_name": "discrete",
"template_position": "top-left",
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_4"
},
{
"base": {
"name": "Preview B",
"number": 3,
"version": "2",
"template": null,
"configuration_kind": "custom",
"template_name": null,
"position": null
},
"playback": {
"start_at": null,
"end_at": null,
"auto_unmute": false,
"animation": null
},
"styles": {
"background_color": null,
"foreground_color": null
},
"texts": {
"top": null,
"bottom": null
},
"elements": [],
"id": "smart_autoplay_652f2b1e8f1b2c3d4e5f6a7b_3"
}
]
}
}{
"type": "https://docs.vturb.com/errors/unauthorized",
"code": "unauthorized",
"message": "Missing or invalid API credential. Send a vt_ token in the Authorization header.",
"request_id": "00000000-0000-0000-0000-000000000000"
}{
"type": "https://docs.vturb.com/errors/org_not_enabled",
"code": "org_not_enabled",
"message": "Your organization is not enabled for this API.",
"request_id": "00000000-0000-0000-0000-000000000000"
}{
"type": "https://docs.vturb.com/errors/not_found",
"code": "not_found",
"message": "Resource not found.",
"request_id": "00000000-0000-0000-0000-000000000000"
}