Examples / Email delivery / SendGrid (Twilio)
SendGrid (Twilio) webhooks
Event Webhook: processed, delivered, opened, clicked, bounced, dropped, spam report. Inbound Parse for incoming mail.
Events
- delivered
- open
- click
- bounce
- dropped
- spamreport
Signature
Headers X-Twilio-Email-Event-Webhook-Signature and -Timestamp. Verify the ECDSA (Ed25519-style public key) signature over '<timestamp><raw body>' with the public key from the Event Webhook settings.
✓ A bin checks SendGrid (Twilio) signatures: add the verification key (base64, Mail Settings → Signed Event Webhook) under Signature verification (SendGrid Event Webhook).
Retries
SendGrid retries for up to 24 hours if it does not get a 2xx. Events arrive in batches as a JSON array.
See a retry schedule in the calculator.
Docs
www.twilio.com/docs/sendgrid/for-developers/tracking-events/event
Checked 2026-10-08. Report a change.
[
{ "email": "ravi@example.com", "timestamp": 1759924800, "event": "delivered", "sg_event_id": "ZGVsaXZlcmVk…", "sg_message_id": "14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0", "smtp-id": "<14c5d75ce93.dfd.64b469@ismtpd-555>" },
{ "email": "ravi@example.com", "timestamp": 1759924860, "event": "open", "sg_event_id": "b3Blbg…", "useragent": "Mozilla/5.0", "ip": "203.0.113.9" }
]
- The body is an array. One request can hold many events.
Receive SendGrid (Twilio) webhooks with webhooks.xyz
Create a bin. Paste its URL into SendGrid (Twilio). Each request shows at once with its headers and body. Add your server as a destination, and deliveries retry when it is down. Request an invite.