Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Code, Git & Developer Tools

Code, Git & Developer Tools

Test n8n Webhooks with PostBin Without Changing WEBHOOK_URL

When you run it, it creates a PostBin, sends a mock request such as a BambooHR event to it and reads the request back to test webhook handling.

What it does

## How to Test a Short-Lived Webhook in n8n WITHOUT Changing WEBHOOK_URL Typically in n8n, in order to test a webhook, you first need to go through the process of changing the WEBHOOK_URL environment variable to an address that is accessible to the service you want to test. Time permitting, that can be done with ngrok (example) or by self-hosting with one of n8n's recommended deployment options. But if you're new to n8n and in a rush to test a webhook's functionality, you can use PostBin as demonstrated in this workflow to test a proof of concept fast and avoid any unnecessary time on n8n setup and configuration.

The steps

  1. When clicking ‘Test workflow’
  2. Merge
  3. Create Bin
  4. GET Bin
  5. Format url for webhook
  6. GET most recent request
  7. MOCK request
  8. Create Bin1
  9. GET Bin1
  10. Format url for webhook1
  11. SET BambooHR subdomain
  12. Split out fields
  13. Combine fields to monitor
  14. Format payload for BambooHR webhook

34 steps in total.

Similar automations