Use web hooks for indexing job completion notification
When I submit a video to be indexed via UploadVideo API method, I'd like to provide a web hook url as a callback mechanism to indicate when a video is done processing. Processing state could also be provided via this web hook mechanism as well, not just to indicate completion.
The advantage to this approach is a decoupling of the submission of indexing jobs from the post completion handling. This is important when using Azure Functions since you don't want your functions to be running (polling for progress) for as long as it takes the video indexing job to complete. Webhook security could be added by allowing a user provided key needed for the callback URL.
This is available through the callbackUrl parameter you can send in the upload video request – https://api-portal.videoindexer.ai/docs/services/Operations/operations/Upload-Video
Also support in the Swagger for these same WebHooks so that i can use them as a Logic Apps or Flow Trigger.
Triggers should be on IndexingCompletion and also trigger on Update/Edit of the metadata on an asset - useful for review and approval workflows