BlogSlack Webhooks

How to Test Slack Webhooks

Slack sends webhook events when users interact with your app — messages, reactions, slash commands, and interactive components.

Slack Official Webhook Docs

1. Slack Webhook Events

Slack can send the following webhook events to your endpoint:

message
app_mention
reaction_added
member_joined_channel
channel_created
team_join
file_shared
link_shared
app_home_opened
workflow_step_execute

2. Set Up a Test Endpoint with HookRay

Follow these steps to start receiving Slack webhooks for testing:

  1. Go to HookRay and click "Start Testing — Free" to get your unique webhook URL.
  2. Copy the URL (e.g., https://h.hookray.com/abc123).
  3. In your Slack dashboard, navigate to the webhook settings and paste the HookRay URL as your endpoint.
  4. Select the events you want to receive (see list above).
  5. Trigger a test event — HookRay will show the incoming webhook in real-time.

3. Sample Slack Webhook Payload

Here's an example of what a Slack webhook payload looks like:

payload.json
{
  "type": "event_callback",
  "event": {
    "type": "message",
    "channel": "C0123456789",
    "user": "U0123456789",
    "text": "Hello from Slack!",
    "ts": "1710000000.000000"
  },
  "team_id": "T0123456789"
}

4. Common Issues & Troubleshooting

Webhook not arriving?

Check that your endpoint URL is correct and publicly accessible. Slack cannot reach localhost URLs — use HookRay's cloud URL instead.

Getting 400 or 500 errors?

HookRay accepts any payload and returns 200 OK by default, so the issue is likely on Slack's side. Check your webhook configuration and event selection.

Need to verify webhook signatures?

Slack signs webhook requests for security. Use HookRay to capture the raw headers and body, then implement signature verification in your application code.

5. Next Steps

  • Use HookRay's webhook replay feature to re-send captured webhooks while building your handler
  • Enable smart parsing (Pro plan) to see Slack-specific fields highlighted automatically
  • Check the Slack webhook documentation for the complete event reference

Ready to test Slack webhooks?

Get a free webhook URL in 5 seconds. No signup required.

Start Testing Slack Webhooks — Free