A video: status, metadata and, if it failed, the cause and whether a retry helps
GET
/v1/videos/{video}
const url = 'https://api.replifier.com/v1/videos/vid_01hx0000000000000000000000';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 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”video
required
string
Example
vid_01hx0000000000000000000000Responses
Section titled “Responses”Video
Media typeapplication/json
object
id
required
string
brandId
required
string
status
required
uploading (waiting for the PUT to R2), queued, encoding, ready or failed
string
title
required
string
fileName
required
string
contentType
required
string
sizeBytes
required
Actual size measured in R2 when the upload completed
integer
durationSeconds
required
number
width
required
integer
height
required
integer
renditions
required
Array<object>
object
name
required
string
width
required
integer
height
required
integer
videoKbps
required
integer
hasThumbnail
required
boolean
hasFallback
required
boolean
hasPreview
required
M12.4: a lightweight animated preview for email is available
boolean
previewBytes
required
integer
attempts
required
integer
failure
required
Only in failed: the cause in the language of the request. retryable: false = a retry will not fix it; another file must be uploaded.
object
code
required
string
cause
required
string
fix
required
string
detail
required
string
retryable
required
boolean
createdAt
required
string
readyAt
required
string
privateContactId
required
M12.3: if set, only that contact can watch the video with their link
string
Example
{ "status": "uploading"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}