POST
/
api
/
link_to_videos
/
{id}
/
render
/

About Request Data Structure of Webhook

When using ‘create video from link’ or ‘preview video from link’ API, if the ‘webhook_url’ is passed in the parameters, we will initiate a POST request to the webhook_url when the task succeeds or fails, with the following content:

{
    'id': 'string',
    'status': 'string',
    ’failed_reason’: 'string',
    'video_output': 'string',
}

Arguments:

  • id (string): The unique identifier of the job
  • status (string): The status of the job. Possible values are pending, in_queue, running, failed, done
  • failed_reason (string): The reason of the failure if the job failed
  • video_output (string): The URL of the video if the job is done

Note: We might send multiple requests for status changes.

Authorizations

X-API-ID
string
headerrequired

API ID, from your settings page.

X-API-KEY
string
headerrequired

API Key, from your settings page.

Path Parameters

id
string
required

A UUID string identifying this Link to Video.

Response

200 - application/json
id
string
required
target_platform
string
target_audience
string
language
enum<string>
  • ar - Arabic
  • bg - Bulgarian
  • cs - Czech
  • da - Danish
  • de - German
  • el - Greek, Modern
  • en - English
  • es - Spanish; Castilian
  • fi - Finnish
  • fr - French
  • hi - Hindi
  • hr - Croatian
  • id - Indonesian
  • it - Italian
  • ja - Japanese
  • ko - Korean
  • ms - Malay
  • nl - Dutch
  • pl - Polish
  • pt - Portuguese
  • ro - Romanian, Moldavian, Moldovan
  • ru - Russian
  • sk - Slovak
  • sv - Swedish
  • ta - Tamil
  • tl - Tagalog
  • tr - Turkish
  • uk - Ukrainian
  • zh - Chinese
Available options:
ar,
bg,
cs,
da,
de,
el,
en,
es,
fi,
fr,
hi,
hr,
id,
it,
ja,
ko,
ms,
nl,
pl,
pt,
ro,
ru,
sk,
sv,
ta,
tl,
tr,
uk,
zh
video_length
enum<integer>
  • 15 - 15
  • 30 - 30
  • 60 - 60
Available options:
15,
30,
60
aspect_ratio
enum<string>
  • 16x9 - 16x9
  • 1x1 - 1x1
  • 9x16 - 9x16
Available options:
16x9,
1x1,
9x16
script_style
enum<string>
  • DiscoveryWriter - Discovery
  • DontWorryWriter - Don't Worry
  • EmotionalWriter - Emotional
  • GenZWriter - Gen Z
  • LetMeShowYouWriter - Let Me Show You
  • MotivationalWriter - Motivational
  • NarrationWriter - Music Starter
  • ProblemSolutionWriter - Problem-Solution
  • ResponseBubbleWriter - Response Bubble
  • StoryTimeWriter - Storytime
  • ThreeResonsWriter - 3 Reasons Why
  • DIY - DIY
Available options:
DiscoveryWriter,
DontWorryWriter,
EmotionalWriter,
GenZWriter,
LetMeShowYouWriter,
MotivationalWriter,
NarrationWriter,
ProblemSolutionWriter,
ResponseBubbleWriter,
StoryTimeWriter,
ThreeResonsWriter,
DIY
visual_style
enum<string>
  • AvatarBubbleTemplate - Avatar Bubble
  • FullScreenTemplate - Full Screen
  • FullScreenTemplate2 - Full Screen
  • GreenScreenEffectTemplate - Green Screen Effect
  • MotionCardsTemplate - Motion Cards
  • OverCardsTemplate - Over Cards
  • QuickTransitionTemplate - Quick Transition
  • ScribbleTemplate - Scribble
  • SideBySideTemplate - Side by Side
  • TwitterFrameTemplate - Twitter Frame
  • VanillaTemplate - Vanilla
  • VanillaTemplate2 - Vanilla
Available options:
AvatarBubbleTemplate,
FullScreenTemplate,
FullScreenTemplate2,
GreenScreenEffectTemplate,
MotionCardsTemplate,
OverCardsTemplate,
QuickTransitionTemplate,
ScribbleTemplate,
SideBySideTemplate,
TwitterFrameTemplate,
VanillaTemplate,
VanillaTemplate2
override_avatar
string | null
override_voice
string | null
override_script
string | null
webhook_url
string | null
link
string
required
media_job
string | null
required
status
enum<string>
required
  • pending - Pending
  • in_queue - In Queue
  • running - Running
  • failed - Failed
  • done - Done
  • rejected - Rejected
Available options:
pending,
in_queue,
running,
failed,
done,
rejected
failed_reason
string | null
required
video_output
string | null
required
progress
string
required
no_background_music
boolean
no_caption
boolean
no_emotion
boolean
preview
string | null
required
caption_style
enum<string>
  • normal-black - NORMAL_BLACK
  • normal-white - NORMAL_WHITE
  • normal-red - NORMAL_RED
  • normal-blue - NORMAL_BLUE
  • neo - NEO
  • brick - BRICK
  • frenzy - FRENZY
  • verana - VERANA
  • mustard - MUSTARD
  • glow - GLOW
  • mint - MINT
  • coolers - COOLERS
  • bilo - BILO
  • toons - TOONS
  • deep-blue - DEEP_BLUE
  • mystique - MYSTIQUE
  • caution - CAUTION
  • duality - DUALITY
Available options:
normal-black,
normal-white,
normal-red,
normal-blue,
neo,
brick,
frenzy,
verana,
mustard,
glow,
mint,
coolers,
bilo,
toons,
deep-blue,
mystique,
caution,
duality
caption_position

Position of the caption, only center is supported for now, default to null

  • center - Center
Available options:
center
caption_offset_x
string | null

Caption offset x is horizontaly relative to the center of the canvas in percentage, range from -0.5 to 0.5, default to null

caption_offset_y
string | null

Caption offset y is vertically relative to the center of the canvas in percentage, range from -0.5 to 0.5, default to null