Chrisjjohnson18
11/22/2025, 7:42 PMChiranjeet Mishra
11/22/2025, 7:43 PMVapi Support Bot
11/22/2025, 7:43 PMChrisjjohnson18
11/22/2025, 7:49 PMChrisjjohnson18
11/22/2025, 8:05 PMChiranjeet Mishra
11/24/2025, 8:17 PMvapi listen command and a tunneling service like ngrok. Here's a quick guide:
1. **Start the Tunnel**:Use a tunneling service to create a public URL that forwards traffic to your local server. For example, using ngrok:
bash
ngrok http 4242
Note the public URL provided by ngrok (e.g., https://abc123.ngrok.io).
2. **Start the Vapi Listener**:Run the vapi listen command to forward webhooks to your local server:
bash
vapi listen --forward-to localhost:3000/webhook
3. **Update Webhook URLs**:Go to your Vapi Dashboard and update your webhook URLs to point to the tunnel URL. For example:
- Assistant webhook URL: https://abc123.ngrok.io
- Phone number webhook URL: https://abc123.ngrok.io
4. **Trigger Webhook Events**:Trigger events that send data through your tunnels to ensure everything is correctly set up. You'll see the webhook events displayed in your terminal for debugging.
For more detailed information, refer to [this documentation](https://docs.vapi.ai/cli/webhook).
If you encounter any connection or timeout issues, ensure your local server is listening on the specified port, and firewall rules are not blocking the connection. Use curl to test direct endpoint responses if needed.