A webhook can automatically send a message to another app whenever a certain event takes place in a MediaSilo project. For example, when a file is deleted from a specific project, a webhook can send the filename, the name of the user who deleted it, and other information directly to your webhook URL.
In this article, we’ll set up a webhook using an example webhook URL provided by https://webhook.site. If you’re interested in setting up a custom notification without any coding, please see Automate Tasks with MediaSilo and Zapier. Zapier allows you to automate notifications between MediaSilo and popular apps like Slack and Gmail.
Looking to use webhooks for upload notifications? Webhooks are not required for basic upload notifications via email, as these notifications are already a feature in MediaSilo. As an administrator, you can enable users to receive email notifications whenever files are uploaded to the projects they are assigned to. This can be done directly from the Users page in Administration. Just click the checkboxes next to the users who you want to receive upload notifications; then, click Actions > Manage notifications for users. Turn on the toggle Enable New Upload Notifications, and click Confirm. |
To set up a new webhook, click the three-dots button on a project and select Edit Project. Note that this option is only available to project owners and administrators.
Then, click Webhooks on the left side of the Edit Project window. In the Webhooks section, you’ll find a list of any webhooks you or other workspace users have already added (including automations created in Zapier).
Next, click Add.
You’ll need to provide two pieces of information:
- First, use the dropdown menu to choose the event in MediaSilo that you want to be notified about. In this example, we want to send a notification whenever a new file is uploaded to the project, so we’ll choose “Asset is created.”
- Next, enter your webhook URL. To illustrate the kind of data MediaSilo can send, we’ll use a unique webhook URL from https://webhook.site.
Finally, click the blue Save Changes button in the bottom right.
Now we can test our new webhook by uploading a file to the project. When the upload is complete, we’ll go back to the webhook.site page with our unique webhook URL. Here, you can see the data that has been captured about this event, such as the filename, the name and email of the uploader, the date and time it was created (Unix timestamp), and more.
When configuring a webhook URL for your application, you can choose which of these values you want to display. If you would like to integrate webhooks with your Slack account, please visit the Slack help center. Using Slack’s Workflow Builder, you can generate a webhook URL and then enter the URL in the Edit Project window in MediaSilo.
Copying a webhook URL from the Slack Workflow Builder
To remove a webhook from your MediaSilo workspace, just click the minus button to the right of the webhook URL.
Removing a Zap (a webhook created in Zapier) will disconnect the Zap from your MediaSilo workspace. You may receive an automated email from Zapier saying you must reconnect your MediaSilo account in Zapier for the webhook to continue working.