Index video to be searchable in your collection, enabling discovery of specific moments and information.
A video. Exactly one of 'path', 'url', or 'content' must be provided. If 'path' is provided, the video will be loaded from the path. If 'url' is provided, the video will be downloaded from the url. The 'content' will be loaded automatically if files are uploaded to the endpoint and 'content' is set to the filename.
The name of the file uploaded to the endpoint. The content of the video will be loaded automatically.
The ID of the video. If not provided, it will be generated automatically.
The human-readable ID of the collection.
curl https://v1.api.aana.ai/index \
--request POST \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'x-api-key: YOUR_API_KEY_HERE' \
--data 'body={"video":{"media_id":"12345","url":"https://example.com/video_12345.mp4"},"collection":"my_collection","reindex_if_exists":false}'
{ "task_id": "11111111-1111-1111-1111-111111111111" }