Endpoint
POST /trigger-template. We recommend polling this endpoint every 5–10 seconds until the workflow is complete.
Use the provided renderedUrl as the base video on which you overlay the subtitles.
Authentication
Path Parameters
| Parameter | Description |
|---|---|
triggerId | Unique identifier for the workflow run (returned from /trigger-template as triggerId) |
Response Format
When workflow is still processing
When workflow has completed successfully
When workflow has failed
Example Response (Completed)
Clip Object
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for the clip |
title | string | Human-readable clip title |
bio | string | Short description or context |
keywords | string[] | Keywords or tags associated with the clip |
people | string[] | Speakers or people detected in the clip |
duration | number | Duration of the clip in seconds |
startTimestamp | number | Start timestamp in the original source video |
endTimestamp | number | End timestamp |
aspectRatio | string | "16:9" or "9:16" |
renderedUrl | string | Public URL of the rendered clip (with no captions) |
rawUrl | string | Raw clip URL (no subtitles) |
thumbnailUrl | string | Thumbnail image URL |
transcriptUrl | string | URL to the JSON transcript for the clip |
viralityScore | number | Score estimating predicted performance |
fps | number | Frames per second of the clip |
Recommended Approach
We recommend polling this endpoint using a backoff interval (5–10 seconds) until:status === "Completed"→ clips availablestatus === "Error"→ retry or notify [email protected]
Render your final video
Use the Render endpoint to burn in your subtitles and any user changes