Create media asset

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

contentType

string

enum

required

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

video/mp4video/webmvideo/quicktime

Allowed:

video/mp4``video/webm``video/quicktime

configuration

required

The configuration to use for the asset.

DubbingAssetRequestConfiguration DubbingAssetRequestConfigurationobject

contentLength

integer | null

Defaults to null

The length of the file content to upload. This is used to verify the integrity of the asset during upload.

contentMD5

string | null

Defaults to null

The MD5 hash of the file content to upload. This is used to verify the integrity of the asset during upload.

title

string

length ≤ 256

Defaults to Untitled

``201 Created. Returns upload credentials for the multipart upload.

object

id

string

required

uploadUrl

string | null

Defaults to null

uploadCredentials

object

required

accessKeyId

string

required

secretAccessKey

string

required

sessionToken

string

required

bucket

string

required

key

string

required

``400 Unsupported Media Type.

``default Unexpected Server error.


ShellNodeRubyPHPPython


xxxxxxxxxx

curl --request POST \

--url https://api.synthesia.io/v2/assets \

--header 'accept: application/json' \

--header 'content-type: application/json' \

--data '

{

"contentType": "video/mp4",

"contentLength": null,

"contentMD5": null,

"title": "Untitled"

}

'

xxxxxxxxxx

{

"id": "string",

"uploadUrl": "string",

"uploadCredentials": {

"accessKeyId": "string",

"secretAccessKey": "string",

"sessionToken": "string",

"bucket": "string",

"key": "string"

}
}