RelayFox

How to test Twilio webhooks locally

Twilio sends webhooks for SMS, voice calls, and WhatsApp messages. Use RelayFox to inspect the exact payload Twilio delivers and forward it to your local handler without a public URL.

  1. 1
    Create a free RelayFox URL on the homepage (no signup needed).
  2. 2
    Paste it as your webhook endpoint: Twilio Console → Phone Numbers → Manage → Active Numbers → select number → Messaging / Voice webhooks.
  3. 3
    Trigger an event (e.g. message received) and watch it arrive live in RelayFox.
  4. 4
    Run the CLI to forward captured events to your local server:
    npx relayfox forward <endpoint-id> --to http://localhost:3000 --token rfx_...
  5. 5
    Inspect headers, body and replay any event as many times as you need.

RelayFox preserves the X-Twilio-Signature header when forwarding, so Twilio's signature verification works against your local server unchanged.

Get your Twilio webhook URL