Skip to main content
Helicone OSS LLM Observability

Webhooks Local Testing

2 min read

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#

Create webhook handler

Set up a local server to receive webhook events:

Node.js webhook handler example

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.

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:

<QuestionsSection> — not implemented in this renderer