Skip to main content
The Slackbot plugin handles incoming webhooks. Point your provider’s subscription URL at your Corsair HTTP handler (see Overview for setup context and the exact URL shape).
New to Corsair? See webhooks and hooks.

Webhook map

  • channels
    • created (channels.created)
  • messages
    • botMessage (messages.botMessage)
    • directMessage (messages.directMessage)
    • groupDirectMessage (messages.groupDirectMessage)
    • message (messages.message)
    • privateChannelMessage (messages.privateChannelMessage)
    • threadReply (messages.threadReply)
  • reactions
    • added (reactions.added)
    • removed (reactions.removed)
  • setup
    • challenge (setup.challenge)

HTTP handler setup

app/api/webhook/route.ts

Events

Channels

Created

channels.created A new channel created in the workspace Payload
webhookHooks example

Messages

Bot Message

messages.botMessage A message posted by another bot or app Payload
webhookHooks example

Direct Message

messages.directMessage A direct message sent to the bot Payload
webhookHooks example

Group Direct Message

messages.groupDirectMessage A message in a multi-person direct message Payload
webhookHooks example

Message

messages.message A message posted by a person in a public channel Payload
webhookHooks example

Private Channel Message

messages.privateChannelMessage A message posted by a person in a private channel Payload
webhookHooks example

Thread Reply

messages.threadReply A reply posted inside a message thread Payload
webhookHooks example

Reactions

Added

reactions.added An emoji reaction added to a message or file Payload
webhookHooks example

Removed

reactions.removed An emoji reaction removed from a message or file Payload
webhookHooks example

Setup

Challenge

setup.challenge Slack Events API URL verification handshake Payload
webhookHooks example