Browse and search developers

Webhooks

Test and debug webhooks

Send a webhook.test event, read the delivery log, rotate a leaked secret and receive deliveries on your machine through an HTTPS tunnel.

On this page
  1. Send a test event
  2. Read the delivery log
  3. Rotate a secret
  4. Receive webhooks on your machine (general advice)

Before you rely on an endpoint for real submissions, confirm that it accepts a signed delivery and responds quickly. Formit gives you a test event and a delivery log for this. The tunnel and tooling advice later on this page is general practice, not a Formit feature.

Send a test event

  1. Open the endpoint under Integrations > Webhooks.
  2. In the Test section, click Send test event. Formit queues a webhook.test delivery and shows "Test event queued - check delivery attempts below".
  3. Watch Delivery logs and click refresh until the delivery shows Succeeded or Retrying.

The test delivery is signed and retried exactly like a real event. Only type and the data fields differ, as shown in the payload guide. The button is disabled while the endpoint is paused or disabled, so turn Enabled back on first.

Read the delivery log

Each row in Delivery logs shows the event label and type, the status, the HTTP status your server returned, the attempt count and the latency. Expand Details to see the delivery id, which matches the X-Formit-Delivery-Id header and the body id, plus the stored response.

What you seeLikely cause
HTTP 400 or HTTP 401 from your handlerSignature check failed. Check that you verify the raw body, use the full whsec_ secret and that your clock is in sync.
HTTP 3xxThe URL redirects, for example HTTP to HTTPS or a missing trailing slash. Use the final URL.
HTTP 404 or HTTP 405Wrong path, or the route does not accept POST.
An error mentioning timeout or abortYour handler took longer than 10 seconds. Respond first, then process.
"Could not resolve webhook hostname" and the endpoint is disabledDNS for the endpoint host did not resolve when the attempt ran. URL check failures disable the endpoint immediately. Fix DNS, then turn Enabled back on.
"Webhook is inactive"The endpoint was paused or disabled before the attempt ran.

Rotate a secret

If a secret leaks, click Rotate secret and confirm. The old secret stops working immediately and the new one is shown once. Store it in your receiver, deploy, then send a test event. Deliveries that arrive between the rotation and your deploy fail verification and will be retried on the normal schedule.

Receive webhooks on your machine (general advice)

Production Formit only delivers to public https:// URLs and rejects localhost and private IPs. To test a handler running on your laptop, expose it through an HTTPS tunnel service of your choice, such as ngrok or Cloudflare Tunnel, and register the public tunnel URL as the endpoint.

Example with a tunnel CLI
# Run your receiver locally
node server.js   # listens on http://localhost:3000

# In another terminal, expose it over HTTPS (command varies by tool)
ngrok http 3000

# Register https://<your-tunnel-host>/webhooks/formit as the endpoint URL
  • Create a separate endpoint for tunnel testing so a stopped tunnel does not disable your production endpoint.
  • Free tunnel URLs often change on restart. Edit the endpoint URL when that happens.
  • Delete or pause the test endpoint when you are done. Endpoints receive events from every form in the workspace.
  • To unit test your verifier without Formit, sign a sample body yourself with the same scheme (HMAC-SHA256 over <t>.<body>) and a fake secret, then check that your handler accepts it and rejects a changed body or an old timestamp.

Ready?

Build your first AI form in minutes.

No credit card. Generate from a prompt, enable follow-ups, and publish a link or embed the same day.