Test SendGrid webhooks
SendGrid sends event webhooks for email delivery, opens, clicks, bounces, and spam reports. Capture them on a free webhooks.cc endpoint to see exactly what SendGrid sends, or fire realistic sample payloads at your own handler without touching a production account.
No credit card · 50 requests/day free · or get a guest URL without an account
Prefer a walkthrough? Read the local webhook testing guide.
SendGrid Event Webhook event types
SendGrid batches email events into a JSON array POSTed to your Event Webhook URL. Every object in the array carries an event field and sg_event_id.
| Event | Meaning |
|---|---|
| processed | Message received by SendGrid and ready for delivery |
| delivered | Receiving mail server accepted the message |
| deferred | Receiving server temporarily rejected the message; SendGrid will retry |
| bounce | Receiving server permanently rejected the message |
| dropped | SendGrid dropped the message (suppression list, invalid address) |
| open | Recipient opened the HTML email (tracking pixel loaded) |
| click | Recipient clicked a tracked link in the email |
| spamreport | Recipient marked the email as spam |
Source: SendGrid Event Webhook reference.
How to test SendGrid webhooks
- 1
Create a webhook endpoint
Sign in free with GitHub, Google, or email to create a persistent endpoint, or grab an instant guest URL at webhooks.cc without an account.
- 2
Point SendGrid at your URL
Paste the endpoint URL into SendGrid: SendGrid → Settings → Mail Settings → Event Webhook.
- 3
Inspect what arrives
Each delivery appears live in the dashboard with method, headers, body, query parameters, and source IP.
- 4
Forward to localhost or assert in CI
Run whk tunnel <port> to forward webhooks to a local server, or use the TypeScript, Python or Go SDK to wait for and assert on deliveries in tests.
SendGrid webhook signature
| Verification in webhooks.cc | Capture deliveries to inspect raw signature material |
|---|
SendGrid does not use a conventional signature header. Capture a real delivery to inspect exactly what is sent.
New to signature verification? Read the webhook signature verification guide.
Send sample SendGrid events
These SendGrid templates ship with realistic payloads. Send them from the dashboard's Send button, the SDK, or your AI agent via MCP.
deliveredopenbouncespam_report# Send a signed SendGrid sample with the SDK
await client.endpoints.sendTemplate( slug, {
provider: "sendgrid",
template: "delivered",
});Everything in one place
- Live dashboard: see deliveries the moment they arrive
- Forward to localhost with whk tunnel
- Replay any captured request to any URL
- Mock responses with custom status, headers, and body
- Forward to your servers, Slack or Discord
- TypeScript, Python and Go SDKs for CI assertions
- MCP server for AI coding agents
SendGrid webhook questions
SendGrid signs Event Webhooks with ECDSA over SHA-256 rather than HMAC. Concatenate the x-twilio-email-event-webhook-timestamp header value and the raw request body bytes, then verify the base64 signature in x-twilio-email-event-webhook-signature using the ECDSA public key from SendGrid Settings -> Mail Settings -> Event Webhook.
SendGrid batches deliveries for throughput, posting a JSON array of event objects every few seconds or when the batch fills. Iterate over the array in your handler and deduplicate each item by its unique sg_event_id.
Create a free endpoint on webhooks.cc (sign in with GitHub, Google, or email, or use a guest endpoint without an account), then configure it as your webhook URL: SendGrid → Settings → Mail Settings → Event Webhook. Every delivery shows up live in the dashboard with full headers, body, and query parameters. To hit a local server, run whk tunnel <port> and the CLI forwards each webhook to localhost.
Yes. webhooks.cc ships SendGrid templates (delivered, open, bounce) with realistic payloads. Send them from the dashboard, the SDK, or the MCP server to exercise your handler end-to-end.
Yes. A free account gets you persistent endpoints, 50 requests per day, 7-day retention, and full CLI, SDK, and MCP access, with no credit card. You can also try a guest endpoint without an account: up to 25 requests for 12 hours.
More providers
Your SendGrid webhook URL is seconds away
Sign up free, create an endpoint, and point SendGrid at it.
No credit card · or try without an account