Report that the PUT to R2 finished: validates the actual size and queues the encoding
const url = 'https://api.replifier.com/v1/videos/vid_01hx0000000000000000000000/complete';const options = {method: 'POST', 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 POST \ --url https://api.replifier.com/v1/videos/vid_01hx0000000000000000000000/complete \ --header 'Authorization: Bearer <token>'Idempotent: if the video has already left uploading, returns its current status. 409 video_upload_incomplete if the file is not in R2 or its size does not match the declared one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
vid_01hx0000000000000000000000Responses
Section titled “Responses”Video queued
object
uploading (waiting for the PUT to R2), queued, encoding, ready or failed
Actual size measured in R2 when the upload completed
object
M12.4: a lightweight animated preview for email is available
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
M12.3: if set, only that contact can watch the video with their link
Example
{ "status": "uploading"}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" }}