Slack Webhook

Handle Slack Events API callbacks for support chat replies.

Flow:

  • url_verification: return the challenge (one-time Slack app setup)
  • message event in a thread:
    • Find the support session by slack_thread_ts
    • Persist the admin reply as a SupportChatMessage
    • If session is open → push via Socket.IO
    • If session is closed → send email via Resend
post/api/webhooks/slack

Response

Successful Response

{"stackTrail":"paths:/api/webhooks/slack:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.