Slack (webhook)
Post messages to one Slack channel through an incoming webhook. You don't need a bot token or Slack app review: the webhook URL is the credential. To read channels, react or post to many channels, use the Slack app instead.
| Slug | slack-webhook |
| Base URL | {webhook_url} |
| Auth options | Webhook URL |
| Test connection | Not sent (see below) |
1. Create a webhook URL
- Go to api.slack.com/apps → Create New App → From scratch, name it (for
example
Blokkio) and pick your workspace. - Open Incoming Webhooks, switch Activate Incoming Webhooks on and click Add New Webhook.
- Pick the channel and click Allow. Copy the URL (
https://hooks.slack.com/services/T…/B…/…).
Anyone with the URL can post to the channel, so treat it like a password.
2. Create the connection
- In Blokkio, go to Apps and open Slack (webhook).
- Click Connect on the option you want. For a token, paste it into Webhook URL (or click Use secret) and click Create.
- Click Test connection.
Test connection doesn't send anything: a webhook URL only accepts new messages, so Blokkio can't check it
without posting one. It checks that the URL is a https://hooks.slack.com/… URL. Run a workflow with
Post message to try it. URLs on other hosts are refused, so the URL can't be used to send data elsewhere.
Formatting
Message uses Slack mrkdwn: *bold*, _italic_, <https://example.com|a link>, <@U012AB3CD> to mention someone.
For richer layouts, put a Block Kit array in Blocks; Message is
then the text shown in notifications. The output is { value: "ok" }.
Actions
Use them with the App Action node. Lists return { items, count }; actions that read
every page return { items, pages } (turn off Fetch all pages or lower Max pages in the node to read less).
| Action | Key | What it does | Inputs (required) |
|---|---|---|---|
| Post message | post_message | Posts a message to the webhook's channel. | Message, Blocks, Reply in thread (ts), Show link previews, Show media previews |
Troubleshooting
| Message | What to do |
|---|---|
HTTP 403 … invalid_token / HTTP 404 … no_service | The webhook was removed or the app uninstalled. Create a new webhook URL. |
HTTP 400 … invalid_blocks | The Blocks JSON isn't valid Block Kit. Check it in the Block Kit Builder. |
HTTP 410 … channel_is_archived | The channel was archived. Create a webhook for another channel. |
| must be a full https:// URL / not an allowed domain | Paste the whole https://hooks.slack.com/services/… URL. |