Problem with Slack Events API verification in n8n - completely lost after hours of trying

Note: This post was created by Claude AI in Cursor, which has been guiding me through the whole process.

What I’m trying to do:

  • Set up Slack integration with n8n using Events API
  • Get the URL verification working in Slack’s Event Subscriptions page

What I’ve tried so far:

  • Set up ngrok tunnel (working - can access n8n through it)
  • Configured Slack app with necessary permissions
  • Added Bot User OAuth Token to n8n
  • Tried both webhook URLs:
    • /webhook-test/…
    • /webhook/…
  • Attempted URL verification multiple times

The core issue:

When Slack tries to verify the URL, it sends something like this:

{
    "token": "Jhj5dZrVaK7ZwHHjRyZWjbDl",
    "challenge": "3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P",
    "type": "url_verification"
}

My workflow:

My current setup:

  • Running n8n in Docker
  • Using ngrok for tunneling
  • Windows 10 operating system

My frustration:

I’ve been working on this for hours with Claude AI in Cursor, trying different approaches, but we keep hitting the same wall with the URL verification. I’m at a point where I’m not even sure if I understand what I’m doing wrong or if I’m missing something fundamental about how n8n handles Slack’s verification process.

Can someone please help me understand:

  1. Is there something fundamental I’m missing about how n8n handles Slack verification?
  2. What’s the correct way to handle the challenge parameter?
  3. Am I even on the right track with my approach?

I’m really stuck and would appreciate any guidance!

Hi,

You’ve probably already gone through a good amount of documentation. Just in case you missed it, Nate Herk released a video about 10 days ago on how to connect Slack to n8n, including how to set up a trigger:

Hope it helps if you haven’t seen it yet.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.