REST APIAssets
Processing status for an asset.
GET
bearerAuthheader
AuthorizationBearer <token>A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.
id*stringAsset id.
Processing status.
application/json- response
id*stringstatus*stringValue in
"queued""processing""completed""failed""retrying"stage*stringPipeline 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*integerretry_count*integerRetries of the pipeline stages so far: each automatic retry and each manual retry.
error_message*string|nullstarted_at*|Format
date-timecompleted_at*|Format
date-timecreated_at*stringFormat
date-timeretryable*booleanWhether 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<>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" } ]}