Import videos

An import represents the process of uploading and indexing all videos from the specified integration. This method initiates an asynchronous import and returns two lists:

  • Videos that will be imported.
  • Videos that will not be imported, typically due to unmet prerequisites.

The actual uploading and indexing of videos occur asynchronously after you invoke this method. To monitor the status of each upload after invoking this method, use the Retrieve import status method.

NOTES:

  • Before importing videos, you must set up an integration. For details, see the Set up an integration section.
  • The videos you wish to upload must meet the requirements in the Prerequisites section of the Upload single videos page.
  • By default, the platform checks for duplicate files using hashes within the target index and will not upload the same video to the same index twice. However, the same video can exist in multiple indexes. To bypass duplicate checking entirely and import duplicate videos into the same index, set the value of the incremental_import parameter to false.
  • Only one import job can run at a time. To start a new import, wait for the current job to complete. Use the GET method of the /tasks/transfers/import/{integration-id}/logs endpoint to retrieve a list of your import jobs, including their creation time, completion time, and processing status for each video file.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The unique identifier of the integration for which you want to import videos. You can retrieve it from the Integrations page.

Body Params

Request to import videos from a cloud storage bucket to an index.

string
required

The unique identifier of the index to which the videos are being uploaded.

boolean
Defaults to true

Specifies whether or not incremental sync is enabled. If set to false, the platform will synchronize all the files in the bucket.

Default: true.

boolean
Defaults to false

Determines whether the platform retries failed uploads. When set to true, the platform attempts to re-upload files that failed during the initial upload process.

Default: false.

user_metadata
object

Metadata that helps you categorize your videos. 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.

NOTES:

  • The metadata you specify when calling this method applies to all videos imported in this request.
  • If you want to store other types of data such as objects or arrays, you must convert your data into string values.
  • You cannot override any of the predefined metadata (example: duration, width, length, etc) associated with a video.
Headers
string
required

Your API key.

NOTE: You can find your API key on the API Key page.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json