Upload Asset

Upload a new asset.

Headers

xi-api-keystringOptional

Request

This endpoint expects a multipart form containing a file.
assetfileRequired
The file to upload.
namestringRequired
Display name for the asset.

Response

Successful Response
asset_idstring
Unique identifier for the asset.
namestring
Display name of the asset.
mime_typestring

MIME type of the uploaded file (e.g. audio/mpeg).

created_at_unixinteger

Unix timestamp (seconds) the asset was created.

content_urlstring or null

Signed URL to fetch the asset’s content. May be null if the asset has not finished processing. Do not rely on it being valid for more than 1 hour; fetch the asset again for a fresh URL.

Errors

422
Unprocessable Entity Error