Using a tunnel service
Use a tunnel service like ngrok or localtunnel to create a public URL that forwards to your local machine.ngrok
https://abc123.ngrok.io that forwards to http://localhost:3000.
localtunnel
Configure the webhook endpoint
- Go to your workspace settings in the Rapidly dashboard
- Navigate to Webhooks and create a new endpoint
- Set the URL to your tunnel URL (e.g.
https://abc123.ngrok.io/api/webhooks) - Select the events you want to receive
- Copy the webhook secret and set it in your environment variables:
Verify webhook signatures
Always verify webhook signatures in your handler to ensure the payload is authentic. Use the secret from step 5 to validate thewebhook-signature header.