~ 3 min read

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

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 App3. Select the “From scratch” option to create a new app

From scratch4. 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 5. 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 app3. Ensure you’re on the app’s “Incoming Webhooks” page under the “Features” menu

Incoming Webooks4. Click on the toggle button to activate incoming webhooks

activate incoming webhooksactivate incoming webhooks5. Navigate to the “Webhook URLs for Your Workspace” section and click on the “Add New Webhook to Workspace” button

Add New Webhook to Workspace6. Select the channel to send the notifications to from the drop-down menu and click on the “Allow” button

Allow7. 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 channel8. 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.

;