Data to embed the video in an email (editor `video` block)
const url = 'https://api.replifier.com/v1/videos/vid_01hx0000000000000000000000/embed';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.replifier.com/v1/videos/vid_01hx0000000000000000000000/embed \ --header 'Authorization: Bearer <token>'Returns the thumbnail, the lightweight animated preview, the fallback MP4 and the generic player link. Only a ready video (409 video_invalid_state). A private video cannot be embedded (409 video_private_no_embed): its email URLs would work for anyone who receives a forward.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
vid_01hx0000000000000000000000Responses
Section titled “Responses”Block data
What is needed to build an editor video block. The URLs are not recipient secrets, but they are not published either: whoever has them can see that preview.
object
Still image (fallback and poster). Signed for its exact path, valid for ~13 months
Lightweight animated preview (GIF); null if the encoder did not generate it
Fallback MP4 for in-email playback (Apple Mail); null if it does not exist
Generic player link (does not identify the recipient). On send it is replaced by each recipient’s link
Example generated
{ "videoId": "example", "thumbnailSrc": "example", "previewSrc": "example", "mp4Src": "example", "url": "example", "width": 1, "height": 1, "previewBytes": 1, "expiresAt": "example"}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
object
object
Example
{ "error": { "code": "not_found" }}