Resources

How to create Slack Incoming Webhook URLs

This blog lists the steps that are required to be performed in order to create a Slack application that will contain the incoming Webhook

How to create Slack Incoming Webhook URLs
Ayush Priya
May 13, 2022

Introduction

Slack provides a utility for the workspace administrators to create and manage webhook URLs which can be used to send messages to a specified Slack channel. This is a great service that can be used to create a notification system and send automated notifications to a dedicated Slack channel via an application.

Creating a Slack App

This section lists the steps that are required to be performed in order to create a Slack application that will contain the incoming webhook.

  1. Navigate to https://api.slack.com/apps
  2. Click on the “Create New App” button
Create New App
  1. Select the “From scratch” option to create a new app
From scratch
  1. Next, give a name for the App and select the workspace the app is meant to send notifications to, and click on the “Create App” button
name the App and select the workspace
  1. If you receive this warning message, the application would need to be approved by an administrator of the Slack workspace
If you receive this warning message, the application would need to be approved by an administrator of the Slack workspace

Creating a Slack Webhook

This section lists the steps that are required to be performed in order to create a Slack webhook URL.

  1. Navigate to https://api.slack.com/apps
  2. Choose the “kloudle-notifications-app” from the list
choose app
  1. Ensure you’re on the app’s “Incoming Webhooks” page under the “Features” menu
Incoming Webooks
  1. Click on the toggle button to activate incoming webhooks
activate incoming webhooks
activate incoming webhooks
  1. Navigate to the “Webhook URLs for Your Workspace” section and click on the “Add New Webhook to Workspace” button
Add New Webhook to Workspace
  1. Select the channel to send the notifications to from the drop-down menu and click on the “Allow” button
Allow
  1. Copy the Webhook URL which can now be used to send notifications to the channel
Copy the Webhook URL which can now be used to send notifications to the channel
  1. If you are not a “Workspace Owner” for the Slack workspace instead of the “Add New Webhook to Workspace” button you will see a “Request to Add New Webhook” button. Click on the button to send a request to the Workspace Owner to approve the creation of the incoming webhook

Request to Add New Webhook

  1. Once the request is approved, follow steps 5, 6, and 7 to create the webhook and get the Webhook URL

Note: To add subsequent webhooks we can use the same Slack app instead of creating a new one each time.

How to create Slack Incoming Webhook URLs
ABOUT THE AUTHOR

Ayush Priya

Ayush is a Cyber Security Engineer specialising in Cloud and Data Security and DevSecOps practices. He loves to develop automation for security controls and process. He has delivered talks at various conferences and security communities like GrayHat'20, Cyber Security Global Summit to name a few. Ayush also contributes to the OWASP Ranchi chapter as the Chapter Lead.

Enjoyed this read?

Subscribe to our newsletter and stay ahead with more great insights and resources on cloud security!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.