REST APIPlayback
Create a playback ID.
POST
bearerAuthheader
AuthorizationBearer <token>A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.
id*stringAsset id.
application/json- body
policy?stringDefault
"public"Value in
"public""signed"name?stringA label to tell playback IDs apart. Trimmed; no control characters.
Length
length <= 100Created.
application/json- response
id*stringFormat
uuidplayback_id*stringPublic pb_... handle.
policy*stringValue in
"public""signed"name*string|nullcreated_at*stringFormat
date-timecurl -X POST 'https://sluby.example.com/api/v1/assets/string/playback-ids' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "playback_id": "string", "policy": "public", "name": "string", "created_at": "2019-08-24T14:15:22Z"}