Signed, expiring URLs to watch the video (HLS, MP4 and thumbnail)
GET
/v1/videos/{video}/playback
const url = 'https://api.replifier.com/v1/videos/vid_01hx0000000000000000000000/playback';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/playback \ --header 'Authorization: Bearer <token>'For brand administrators (preview). Does not count as an open for any recipient. Only a ready video (409 video_invalid_state otherwise).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”video
required
string
Example
vid_01hx0000000000000000000000Responses
Section titled “Responses”Signed URLs
Media typeapplication/json
Signed URLs with an expiry. They expire on their own or if tampered with; do not store them.
object
hls
required
string
mp4
required
string
thumbnail
required
string
expiresAt
required
string
Example generated
{ "hls": "example", "mp4": "example", "thumbnail": "example", "expiresAt": "example"}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" }}Conflict
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" }}Service temporarily unavailable
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" }}