Kloudle
blog

How to create Slack Incoming Webhook URLs

Riyaz Walikar
#slack#kloudle#product#onboarding
Feature image

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

    slack api Create New App

  3. Select the “From scratch” option to create a new app

    slack api New App from scratch

  4. 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

    slack New App name

  5. If you receive this warning message, the application would need to be approved by an administrator of the Slack workspace

    slack workspace approval warning

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

    slack api app list

  3. Ensure you’re on the app’s “Incoming Webhooks” page under the “Features” menu

    slack Incoming Webhooks

  4. Click on the toggle button to activate incoming webhooks

    Incoming Webhooks on

    Incoming Webhooks turn on

  5. Navigate to the “Webhook URLs for Your Workspace” section and click on the “Add New Webhook to Workspace” button

    Add New Webhook to Workspace

  6. Select the channel to send the notifications to from the drop-down menu and click on the “Allow” button

    slack notifications channel

  7. Copy the Webhook URL which can now be used to send notifications to the channel

    Copy the Webhook URL

  8. 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

    Add New Webhook to Workspace

  9. 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.

← Back to Blog