Sluby
REST APIPlayback

Playback info + URL for an asset or playback ID.

GET
/api/v1/playback/{id}

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 UUID or pb_ playback ID.

Response Body

Playback info.

application/json
  1. response
playback_url*string

Path of the master manifest on this deployment, e.g. /v1/objects/<id>?type=manifest. A path, so a client can resolve it against its own delivery base (a CDN in front of the gateway, say). It is unsigned: a private asset needs /signed or /share.

poster_url*|

Path of the first thumbnail.

duration_ms*integer|null
resolution*string|null
access_tier*string
Value in"public""private"
Example Request
curl -X GET 'https://sluby.example.com/api/v1/playback/string'
Example Response
{  "playback_url": "string",  "poster_url": "string",  "duration_ms": 0,  "resolution": "string",  "access_tier": "public"}