To obtain a Slack Webhook URL, follow these steps:
Create a Slack App
- Visit the Slack API website (api.slack.com) and sign in to your Slack account.
- Click on “Create New App” and choose “From scratch”.
- Give your app a name and select the workspace you want to use.
Enable Incoming Webhooks
- In your app’s settings, find the “Incoming Webhooks” section.
- Toggle the switch to activate the Incoming Webhooks feature.
Generate the Webhook URL
- Click on “Add New Webhook to Workspace”.
- Select the channel where you want the webhook to post messages.
- Authorize the app to access the selected channel.
Obtain the Webhook URL
- After authorization, you’ll be redirected back to your app settings.
- Under “Webhook URLs for Your Workspace,” you’ll find your new Webhook URL.
- The URL will look similar to: https://hooks.slack.com/services/XXXXXXXXXX/XXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX.
- Copy this URL by clicking the “Copy” button next to it.