List background tasks
/jobs/read Read: looks, changes nothing. Scopes
Every background task you may see (imports, mass edits, syncs, backups…), newest first, a page at a time. An account sees the tasks it started; panel operators allowed to manage a kind of task see everyone's.
Query parameters
kindstringOnly these kinds, comma-separated:
import,bulk_delete,bulk_edit,ingest,series_import,provider_import,watch_scan,backup,panel_import,editor.orderingstringSort by
created_at,kindorstate;-in front for descending. Default-created_at.pageintegerA page number within the paginated result set.
page_sizeintegerNumber of results to return per page.
searchstringMatches the task's name, file or message.
statestringOnly these states, comma-separated:
queued,running,waiting,stalled,completed,failed,cancelled;active= queued + running.
Response
200 OK
countintegerrequiredHow many there are in all, on every page.
nextstring (uri)can be nullThe next page, or null on the last one.
previousstring (uri)can be nullThe page before, or null on the first one.
resultsobject[]requiredidstringrequiredkindstringrequiredimport- Playlist importbulk_delete- Mass deletebulk_edit- Mass editingest- VOD ingestseries_import- TV show importprovider_import- Film and show importwatch_scan- Watch folder scanbackup- Backuppanel_import- Move from another paneleditor- Playlist editor
One of:
"import""bulk_delete""bulk_edit""ingest""series_import""provider_import""watch_scan""backup""panel_import""editor"kind_labelstringrequiredtitlestringrequiredsubtitlestringrequiredstatestringrequiredWhere the task is, in the same words for every kind.
queued- Queuedrunning- Runningwaiting- Waiting for youstalled- Stalledcompleted- Completedfailed- Failedcancelled- Cancelled
state_labelstringrequiredstatusstringrequiredThe task's own status, in its kind's words.
status_labelstringrequiredprogressobjectrequireddoneintegerrequiredcan be nulltotalintegerrequiredcan be nullpercentintegerrequiredcan be nullphasestringrequired
messagestringrequireddetailsobject[]requiredlabelstringrequiredvalueanyrequired
errorsobject[]requiredWhat went wrong for single items, when the kind records it.
linkobjectrequiredcan be nullpathstringrequiredThe dashboard page that shows this task.
queryobjectrequiredlabelstringrequired
actionsstring[]requiredWhat the signed-in account may do to it now.
One of:
"cancel""resume""retry""undo"created_by_usernamestringrequiredcan be nullcreated_atstring (date-time)requiredstarted_atstring (date-time)requiredcan be nullfinished_atstring (date-time)requiredcan be nullupdated_atstring (date-time)required
Errors
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.