videos

Read a video's ingest state

Changed on

How far ingest has got with the video's uploaded file. Videos that were ingested before this endpoint existed report done; videos nothing has uploaded to report pending.

get/api/videos/{id}/ingest

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Authorization
    • API key in cookie sessionid

Path parameters

idinteger required

Response

videointeger required
state'pending' | 'probing' | 'archiving' | 'transcoding' | 'done' | 'failed' required
  • pending - Waiting to be picked up
  • probing - Inspecting the uploaded file
  • archiving - Storing the original
  • transcoding - Generating derived files
  • done - Finished
  • failed - Failed
priorityinteger

Claim order among waiting jobs; higher is claimed sooner.

kind'upload' | 'backfill'
  • upload - Source is a fresh upload in the tusd volume
  • backfill - Source is the media archive
claimedBystring nullable required

Identity of the worker that last claimed this job, if any.

percentageDoneinteger nullable

Progress through the current state, not through the pipeline as a whole. Null where the current state has no progress to report.

errorCodestring

Machine-readable reason the ingest failed; empty otherwise. The wording shown to the uploader is the frontend's to choose, not ingest's.

updatedTimestring date-time nullable required

Changes

    • breaking

      for the path request parameter id, the type changed from string to integer

    • info

      removed the pattern ^\d+$ from the path request parameter id

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      endpoint added