Why use Webhooks Local Testing
- Debug integration issues: Test webhook handlers with real events before deploying to production
- Iterate quickly: Make changes to your webhook handler and test immediately without deployment cycles
- Validate event handling: Ensure your application correctly processes different webhook event types and payloads
Quick Start
1
Create webhook handler
Set up a local server to receive webhook events:
Node.js webhook handler example
Node.js webhook handler example
2
Set up ngrok tunnel
Install and configure ngrok to expose your local server:You’ll see output like:Copy the HTTPS URL for the next step.
3
Configure webhook in Helicone
Add your ngrok URL to Helicone’s webhook settings:
- Go to your Helicone dashboard → Settings → Webhooks
- Click “Add Webhook”
- Enter your ngrok URL with the webhook path:
https://abc123.ngrok-free.app/webhook
- Select the events you want to receive
- Save the webhook configuration
Use Cases
Test webhook integration during local development: