Skip to main content

Create admin playback token

POST 

/bv/cms/v1/admin/tokens

Creates an admin token that can be used to access a live or VOD and request a DRM license. The token allows users to preview the live or VOD before publishing.


  • Returns a 404/NotFound error if the requested resource is not found.

Request

Header Parameters

    x-bv-org-id stringrequired

    To invoke this API using api_token, you need to set the x-bv-org-id header to specify the organization for which you want to perform the action.

Body

required
    resource_id stringrequired

    Required. The unique id of live or VOD.

    resource_type Required. Indicates the resource type is live or VOD. Available values: `RESOURCE_TYPE_LIVE_EVENT`, `RESOURCE_TYPE_VOD_EVENT` (string)required

    Possible values: [RESOURCE_TYPE_LIVE, RESOURCE_TYPE_VOD, RESOURCE_TYPE_LIVE_EVENT, RESOURCE_TYPE_LIVE_EVENT_RECORDING, RESOURCE_TYPE_VOD_EVENT, RESOURCE_TYPE_AUDIO_EVENT]

    customer_id stringrequired

    Required. The customer ID for identifying who is playing the resource.

Responses

A successful response.

Schema
    token string

    Output only. The access token for live or VOD.

Loading...