Skip to navigation

Create media asset

Creates a media asset with support for multipart or direct url upload. This endpoint currently supports only the dubbing configuration.

Authentication

Authorizationstring
API Key authentication via header

Request

This endpoint expects an object.
contentTypeenumRequired

The content type of the asset to upload. Must be one of: video/mp4, video/webm, or video/quicktime.

Allowed values:
configurationobjectRequired
The configuration to use for the asset.
contentLengthinteger or nullOptional
The length of the file content to upload. This is used to verify the integrity of the asset during upload.
contentMD5string or nullOptional
The MD5 hash of the file content to upload. This is used to verify the integrity of the asset during upload.
titlestringOptional<=256 charactersDefaults to Untitled
The title of the asset to upload.

Response

Created. Returns upload credentials for the multipart upload.
idstring
uploadCredentialsobject
uploadUrlstring or nullOptional

Errors

400
Bad Request Error