This method creates an asset by uploading a file to the platform. Assets are media files that you can use in downstream workflows, including indexing, analyzing video content, and creating entities.
Supported content: Video, audio, and images.
Upload methods:
method parameter to direct and use the file parameter to specify the file.method parameter to url and use the url parameter to specify the URL of your file.Upload limits:
Additional requirements depend on your workflow:
This endpoint is rate-limited. For details, see the Rate limits page.
Specifies the upload method for the asset. Use direct to upload a local file or url for a publicly accessible URL.
Specify this parameter to upload a file from your local file system. This parameter is required when method is set to direct.
Local video and audio files support up to 200 MB. Image files support up to 5 MB.
Specify this parameter to upload a file from a publicly accessible URL. This parameter is required when method is set to url.
Public video and audio URLs support up to 4 GB. Image URLs support up to 5 MB.
When set to true, the platform generates an HLS playlist and segments for streaming. Applicable to video and audio assets only.
Default: false.
When set to true, the platform generates thumbnail images from the uploaded content.
Default: false.
Metadata that helps you categorize your assets. You can specify a list of keys and values. Keys must be of type string, and values can be of the following types: string, integer, float, or boolean. Send this value as a JSON-encoded string.
Indicates how you uploaded the asset.
Values:
direct: Uploaded from your local file systemurl: Uploaded from a publicly accessible URLmultipart: Uploaded using the multipart upload flowIndicates the current status of the asset.
Values:
failed: The platform failed to process the uploadprocessing: The platform is processing the uploaded fileready: The asset is ready to useThe date and time, in RFC 3339 format (“YYYY-MM-DDTHH:mm:ssZ”), when the asset was created.
User-defined metadata for this asset. This field is absent when no metadata has been set.
Your API key.
You can find your API key on the API Keys page.