Skip to main content
When developing webhook integrations, you need to test how your application handles Helicone events before deploying to production. Webhooks local testing uses tunneling tools like ngrok to expose your local development server to the internet, allowing Helicone to send real webhook events to your local machine for debugging and integration testing.

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:
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:
  1. Go to your Helicone dashboard → Settings → Webhooks
  2. Click “Add Webhook”
  3. Enter your ngrok URL with the webhook path: https://abc123.ngrok-free.app/webhook
  4. Select the events you want to receive
  5. Save the webhook configuration

Use Cases

Test webhook integration during local development:

Webhooks

Learn about webhook events, payloads, and production configuration

Custom Properties

Use property filters to control which requests trigger webhooks

User Feedback

Receive webhooks when users provide feedback on responses

Alerts

Set up alert rules that trigger webhook notifications