Import Media
Import external media video | audio | image
Webhooks
Webhooks allow video.dev
to notify your API when results are ready.
This eliminates unnecessary requests made by polling, and can get results back faster.
Webhooks can be registered as part of the request and various events can be subscribed to get status of .
The following is a full list of all webhook events which can be subscribed.
Event | Description |
---|---|
complete | Occurs when a media import completes |
error | Occurs when a media import has encountered errors |
The webhook will be POST to the URL you provided with a JSON payload. The payload will contain the event type and the details associated with the event.
Authorizations
Body
URL for the external media (audio, video, image)
"https://external.media/media.mp4"
Type of media
video
, audio
, image
Callback to listen for events
Response
complete
, processing
, error
"processing"
URL for the external media (audio, video, image)
"https://external.media/media.mp4"
Type of media
video
, audio
, image
Callback to listen for events
Was this page helpful?