Webhooks from scoopa are always POST calls and carry a JSON Body with the following data:
{
"origin": "scoopa",
"platform": „test | mediapool",
"file_id": 535986,
"file_name": "server_push.svg",
"file_type": "video/quicktime",
"file_size_in_bytes": 5007,
"folder_id": 62251,
"folder_name": "Test Webhook",
"download_url": "https://...."
}
The download_url is valid for 24h.
Validation-Calls to the webhook URL
Please be aware that scoopa is calling the webhook in order to validate the URL from time to time.
When implementing a scoopa webhook with your partner it must be considered to ignore those calls.
You can detect those calls by checking the "origin" value in the json body for the value "scoopa - endpoint validation test"
{
"origin": "scoopa - endpoint validation test",
"platform": „test | mediapool",
"file_id": "12345",
"file_name": "test.mov",
"file_type": "video/quicktime",
"file_size_in_bytes": "1048576",
"folder_id": "67890",
"folder_name": "test-folder",
"download_url": "https://...."
}