Sluby
REST APIAssets

Processing status for an asset.

GET
/api/v1/assets/{id}/processing

Authorization

bearerAuth
headerAuthorizationBearer <token>

A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.

Path Parameters

id*string

Asset id.

Response Body

Processing status.

application/json
  1. response
id*string
status*string
Value in"queued""processing""completed""failed""retrying"
stage*string

Pipeline step, from the latest stage-tagged log line. upload starts as soon as the transcode hands off, with the line "Waiting for the Sia uploader" while the video waits its turn to be stored on Sia.

Value in"queued""transcode""upload""finalize""completed""failed"
progress_percent*integer
retry_count*integer

Retries of the pipeline stages so far: each automatic retry and each manual retry.

error_message*string|null
started_at*|
Formatdate-time
completed_at*|
Formatdate-time
created_at*string
Formatdate-time
retryable*boolean

Whether POST /retry can start a new run: true only for a failed video whose failure was not final (a file that is not a readable video is final) and whose finished transcode or original file is still on the server.

logs*array<>
Example Request
curl -X GET 'https://sluby.example.com/api/v1/assets/string/processing'
Example Response
{  "id": "string",  "status": "queued",  "stage": "queued",  "progress_percent": 0,  "retry_count": 0,  "error_message": "string",  "started_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "retryable": true,  "logs": [    {      "timestamp": "2019-08-24T14:15:22Z",      "stage": "string",      "message": "string"    }  ]}