Skip to main content

Slack

This guide provides step-by-step instructions on how to set up and use Slack notifications with our application.

Obtaining a Slack Webhook URL

Step 1: Create a Slack App

  1. Navigate to the Slack API Apps Page.
  2. Click Create an App.
  3. Choose From scratch.
  4. Enter a name for your app (e.g., Notification Bot) and select the Slack workspace where the app will be used.
  5. Click Create App.

Step 2: Configure Incoming Webhooks

  1. After creating the app, you will be redirected to the app's settings page.
  2. Under the Features section in the left-hand menu, click Incoming Webhooks.
  3. Toggle the switch to Activate Incoming Webhooks.

Step 3: Add a New Webhook to a Workspace

  1. Scroll down to the Webhooks section and click Add New Webhook to Workspace.
  2. You will be redirected to a permissions page.
  3. Select the channel where you want to post notifications and click Allow.
  4. Once authorized, you will be provided with a Webhook URL. Example: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
  5. Copy this URL and save it securely; it will be used in your application to send messages to the selected channel.

Step 4: Test the Webhook URL

To ensure that the Webhook URL is functioning as expected:

  1. Use a tool like curl or Postman to send a test message:
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Hello, this is a test notification!"}' \
<your-webhook-url>
  1. Confirm that the test message appears in the Slack channel.

Step 5: Configure webhook in the dashboard

Add the Webhook URL to your notification settings :

  1. Navigate to Banksy Dashboard Profile.
  2. Click on Notifications section.
  3. Add the Webhook URL to the Slack field.

image