16

I was searching if slack incoming webhooks can send message to all private groups, but I didn't find any slack documentation on that.

So, can slack incoming webhooks send message to all private groups?

Matias Cubero
  • 161
  • 1
  • 1
  • 5

1 Answers1

15

Incoming webooks can post to private groups. When you set up the incoming webhook at https://TEAM.slack.com/services/new/incoming-webhook, choose the private group you want to send to.

You can send to a different channel (including a different private group) with the "channel" JSON key.

A single incoming webhook cannot send to multiple destinations.

Merlin83b
  • 151
  • 1
  • 4
  • 1
    `A single incoming webhook cannot send to multiple destinations.` Is this still the case? – Julian B. Dec 10 '15 at 21:04
  • It is. The `channel` JSON key is a single string, not an array of channels to send the message to. – Merlin83b Feb 10 '16 at 19:51
  • Not to multiple destinations at once, but you can set different `channel` value for different hook calls. – Konstantin Suvorov Oct 13 '17 at 15:28
  • 6
    Note that there are two types of "incoming webhook" now. The default type is create as part of a Slack app, and the legacy type needs to be installed as app from the Slack App Directory. Only the legacy type supports multiple destinations. – Erik Kalkoken Nov 02 '18 at 13:44
  • But can you still sent to a private channel, even if you didn't select it during setup? – OrangeDog Jan 15 '19 at 15:24
  • Does the person creating the webhook need to be a member of the private channel? – Levi Putna May 29 '20 at 06:29
  • 3
    @LeviPutna If the user is not a member of the channel, the webhook fails with an error of "channel_not_found" – Cristiano Santos Nov 10 '20 at 14:11