Back to feed
Dev.to
Dev.to
7/19/2026
How to Test SendGrid Webhooks Locally

How to Test SendGrid Webhooks Locally

Short summary

A tutorial covering three approaches to testing SendGrid webhooks locally: ngrok tunneling for quick tests, Anonymily for persistent replayable endpoints, and provider-signed test event generation. Includes Express.js code for HMAC-SHA256 signature verification using SendGrid's x-twilio-email-signature header. The Anonymily tool is promoted with pricing details for its Pro tier.

  • Three approaches: ngrok tunneling, Anonymily relay, and signed test event generation
  • Express.js code for HMAC-SHA256 webhook signature verification included
  • Anonymily Pro ($9/month) adds modify-and-replay and re-signing capabilities

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more