Callback - Video CDN [EN]

Callback - Video CDN [EN]

Once the import is complete, the CDN can notify your application by calling a specified callback URL, if one was included in the request. Callback-url is called when file is successfully fetched or it becomes known that file can not be fetched (404 error).

This allows for automated post-processing or confirmation workflows after the content becomes available in the CDN.

If file is fetched successfully, callback url is appended by parameters status=success&size=$file_size&sha-256=$chksum.

For example https://api.example.com/vcdn/webhook-import?status=success&size=1234567&sha-256=3335936d73ebea699e53964b27e705236f478d55f91be26bca3046280ef2c31c.

If file is failed to be fetched, callback url is appended by parameters status=fail&message=$error_text.

For example https://api.example.com/vcdn/webhook-import?status=fail&message=wrong+file+size.

See also

Use callback for status check

Best practice for service usage

How to setup callback url on file imported

Guide for setup callback on import