cURL
curl --request POST \ --url https://api.example.com/index/{index_name}/video \ --header 'Content-Type: multipart/form-data' \ --header 'X-API-Key: <api-key>' \ --form video_file='@example-file' \ --form transcript='@example-file' \ --form 'metadata_str={}'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Video URL to download video from. One of video_url / video_file must be provided.
Video file upload. One of video_url / video_file must be provided.
(Optional) Transcript file upload. Must be a .vtt file.
Metadata dict for the video. See documentation for structure.
Successful Response