Guides

Status

Jobs API provides status of all user initiated jobs in FileSpin.

/jobs/{job_id} API returns the status of a job.

RESPONSE JSON

The API call will return with a JSON response as below.

 {
  "status": "COMPLETED",
  "message": "",
  "job_id": 1234,
  "creator_id": 272,
  "requested_at": "2017-04-20T16:08:02Z",
  "completed_at": "2017-04-20T16:08:02Z",
  "job_steps": {
  },
  "input": {},
  "callback": {},
  "type": "VIDEO_TRANSCODE"
}

RESPONSE PARAMETERS

KeyValueDescription
statusstringCan be "QUEUED", "IN_PROGRESS", "COMPLETED", "ERROR"
messagestringOn "ERROR" status, this will contain the error message that can be used to diagnose the error
job_idintegerThe job ID to track the job
creator_idintegerId of the user who initiated the job
requested_atstringISO 8601 datetime, time at which the job request was received
completed_atstringISO 8601 datetime, time at which the job completed
job_stepsJSONThe job steps and step completion timestamps. This is useful for monitoring progress. The steps will vary depending on the job type.
inputJSONThe API request JSON that created this job
callbackJSONThe callback JSON issued if job completed. If job is not completed yet, this will be an empty dictionary
typestringThe job type. Only "VIDEO_TRANSCODE" supported at this time

Steps for Video Transcode Job

The job_steps for VIDEO_TRANSCODE job type is as below:-

{
   "transcodes": {
          "480p-video": {
              "status": "COMPLETED",
              "percent_complete": 100,
              "started_at": "2023-07-18T15:09:24Z",
              "finished_at": "2023-07-18T15:09:28Z",
              "message": ""
          }
      },
     "addons": {
           "storyboard": {
               "status": "COMPLETED",
               "percent_complete": 100,
               "started_at": "2023-07-18T15:06:12Z",
               "finished_at": "2023-07-18T15:08:46Z",
               "message": ""
           }
       },
      "preprocess": {
          "status": "COMPLETED",
          "percent_complete": 100,
          "started_at": "2023-07-18T15:09:24Z",
          "finished_at": "2023-07-18T15:09:25Z",
          "message": "Downloaded & verified integrity of input file test.mov"
      },
      "postprocess": {
          "status": "COMPLETED",
          "percent_complete": 100,
          "started_at": "2023-07-18T15:09:26Z",
          "finished_at": "2023-07-18T15:09:28Z",
          "message": "Completed uploading outputs"
      }
}
KeyValueDescription
statusstringCan be "QUEUED","IN_PROGRESS", "COMPLETED", "ERROR"
messagestringOn "ERROR" status, this will contain the error message that can be used to diagnose the error
percent_completeintegerJob progress as percentage value
started_atstringISO 8601 datetime, time at which the step processing was started
finished_atstringISO 8601 datetime, time at which the step completed
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!