How to Create a Webhook in Slack, Setup & Generate URL Easily 2026
By Impran M N
Connecting a third-party server or custom script to your Slack workspace requires a secure entry point. This guide covers creating an app, enabling Incoming Webhooks, and generating a URL you can use to send messages programmatically.
01Create a new app
Go to the Slack API dashboard and click 'Create New App' to start a fresh application.
02Choose From Scratch
Select 'From Scratch', name your app, and pick the workspace you want it installed in.
03Enable Incoming Webhooks
Scroll to Features, click Incoming Webhooks, and toggle the activation switch to On.
04Add a webhook to your workspace
Scroll down and click 'Add New Webhook to Workspace', then select a target channel and click Allow.
05Copy and test the URL
Copy the generated webhook URL, then run a sample curl command from a terminal to confirm messages post correctly.
Frequently asked questions
Is the webhook URL sensitive information?
Yes, treat it like a secret since anyone with the URL can post messages to your channel.
Can one app have multiple webhook URLs?
Yes, you can add separate webhooks for different channels within the same app.
What format does the webhook expect for messages?
Incoming webhooks accept a JSON payload, typically with a 'text' field for the message content.
How do I revoke a webhook if it's compromised?
Go back to your app's Incoming Webhooks page and remove the specific webhook to disable it immediately.
Watch the full walkthrough
The same steps, demonstrated on screen from start to finish.



