Webhook Examples: Setting Up Notifications for Slack and Microsoft Teams
Note: External web applications to be linked are out of the scope of Fleekdrive’s support.
Note: If the payload is not recognized as valid JSON, it will not work correctly. Consult the developer responsible for the receiving endpoint, as invalid or incomplete JSON format is not supported.
1) Creating an Incoming Webhook
Create an incoming webhook in Slack for Workflows.
Click here to see how to create.
2) Design of Outgoing Messages
You need to create a JSON document in Block format to post to Slack.
The following is an example.
{ "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Fleekdrive Notification (${action})\n\n ${operator_name} ${action} the following file(s) in space \"${space_path}\".\n\n${contents}\n\n${url}\n" } } ] }
-
Slack uses a framework called Block Kit to create notifications.
The Block Kit Builder allows you to explore a wide variety of templates.
Click here to access Block Kit Builder.
1) Creating an Incoming Webhook
Create an incoming webhook in Microsoft Teams for Workflows.
Click here to see how to create.
Note the generated POST URL.
2) Design of Outgoing Messages.
You need to create a JSON document in AdaptiveCard format to post to Teams.
{ "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.5", "body": [ { "type": "TextBlock", "text": "Fleekdrive Notification (${action})", "size": "large", "weight": "bolder", "style": "heading", "wrap": true }, { "type": "TextBlock", "text": " Fleekdrive Notification (${action})\n\n ${operator_name} ${action} the following file(s) in space \"${space_path}\".\n\n${contents} ", "isSubtle": true, "wrap": true }, { "type": "TextBlock", "text": "${url}", "isSubtle": true, "spacing": "none", "wrap": true } ] } } ] }
-
You can explore a variety of templates by visiting Adaptive Cards – Samples and Templates.
Click here to access Adaptive Cards – Samples and Templates.
Last Updated : 23 May 2025