Skip to main content

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.

Slugslack-webhook
Base URL{webhook_url}
Auth optionsWebhook URL
Test connectionNot sent (see below)

1. Create a webhook URL​

  1. Go to api.slack.com/apps → Create New App → From scratch, name it (for example Blokkio) and pick your workspace.
  2. Open Incoming Webhooks, switch Activate Incoming Webhooks on and click Add New Webhook.
  3. 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​

  1. In Blokkio, go to Apps and open Slack (webhook).
  2. Click Connect on the option you want. For a token, paste it into Webhook URL (or click Use secret) and click Create.
  3. 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).

ActionKeyWhat it doesInputs (required)
Post messagepost_messagePosts a message to the webhook's channel.Message, Blocks, Reply in thread (ts), Show link previews, Show media previews

Troubleshooting​

MessageWhat to do
HTTP 403 … invalid_token / HTTP 404 … no_serviceThe webhook was removed or the app uninstalled. Create a new webhook URL.
HTTP 400 … invalid_blocksThe Blocks JSON isn't valid Block Kit. Check it in the Block Kit Builder.
HTTP 410 … channel_is_archivedThe channel was archived. Create a webhook for another channel.
must be a full https:// URL / not an allowed domainPaste the whole https://hooks.slack.com/services/… URL.