Skip to main content
The Slack 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

  • challenge
    • challenge (challenge.challenge)
  • channels
    • created (channels.created)
  • files
    • created (files.created)
    • public (files.public)
    • shared (files.shared)
  • messages
    • message (messages.message)
  • reactions
    • added (reactions.added)
  • users
    • teamJoin (users.teamJoin)
    • userChange (users.userChange)

HTTP handler setup

app/api/webhook/route.ts

Events

Challenge

Challenge

challenge.challenge Slack URL verification challenge — respond to confirm the webhook endpoint Payload
NameTypeRequiredDescription
typeurl_verificationYes
challengestringYes
webhookHooks example

Channels

Created

channels.created A new channel was created in the workspace Payload
NameTypeRequiredDescription
tokenstringNo
team_idstringYes
api_app_idstringYes
typeevent_callbackYes
event_idstringYes
event_timenumberYes
event_contextstringNo
authorizationsobject[]No
eventobjectYes
webhookHooks example

Files

Created

files.created A file was uploaded or created Payload
NameTypeRequiredDescription
tokenstringNo
team_idstringYes
api_app_idstringYes
typeevent_callbackYes
event_idstringYes
event_timenumberYes
event_contextstringNo
authorizationsobject[]No
eventobjectYes
webhookHooks example

Public

files.public A file was made publicly accessible Payload
NameTypeRequiredDescription
tokenstringNo
team_idstringYes
api_app_idstringYes
typeevent_callbackYes
event_idstringYes
event_timenumberYes
event_contextstringNo
authorizationsobject[]No
eventobjectYes
webhookHooks example

Shared

files.shared A file was shared into a channel Payload
NameTypeRequiredDescription
tokenstringNo
team_idstringYes
api_app_idstringYes
typeevent_callbackYes
event_idstringYes
event_timenumberYes
event_contextstringNo
authorizationsobject[]No
eventobjectYes
webhookHooks example

Messages

Message

messages.message A message was posted or updated in a channel Payload
NameTypeRequiredDescription
tokenstringNo
team_idstringYes
api_app_idstringYes
typeevent_callbackYes
event_idstringYes
event_timenumberYes
event_contextstringNo
authorizationsobject[]No
eventobjectYes
webhookHooks example

Reactions

Added

reactions.added A reaction emoji was added to a message Payload
NameTypeRequiredDescription
tokenstringNo
team_idstringYes
api_app_idstringYes
typeevent_callbackYes
event_idstringYes
event_timenumberYes
event_contextstringNo
authorizationsobject[]No
eventobjectYes
webhookHooks example

Users

Team Join

users.teamJoin A new user joined the workspace Payload
NameTypeRequiredDescription
tokenstringNo
team_idstringYes
api_app_idstringYes
typeevent_callbackYes
event_idstringYes
event_timenumberYes
event_contextstringNo
authorizationsobject[]No
eventobjectYes
webhookHooks example

User Change

users.userChange A user’s profile or account settings were updated Payload
NameTypeRequiredDescription
tokenstringNo
team_idstringYes
api_app_idstringYes
typeevent_callbackYes
event_idstringYes
event_timenumberYes
event_contextstringNo
authorizationsobject[]No
eventobjectYes
webhookHooks example