Delivery behaviour
Read from the vendor's own documentation, last checked 2026-08-06. Where the vendor states no number, this table carries none.
| Response budget | not published by the vendor |
|---|---|
| Retry | At increasing intervals for up to 24 hours after the event |
| Gives up | not published by the vendor |
Signature
Verified against a working verifier proven by a test suite, not read from documentation. Last verified 2026-08-20.
| Algorithm | ECDSA P-256 |
|---|---|
| Signed payload | {timestamp}{body} |
| Encoding | base64 |
| Header | x-twilio-email-event-webhook-signature |
| Tolerance | none enforced |
Verify it
The raw request body, byte for byte, before any JSON parsing. Every scheme on this page breaks the moment a framework re-serializes the payload.
// ECDSA P-256 over "{timestamp}{body}". The key is base64 SPKI, the signature base64 DER.
const crypto = require("node:crypto");
const key = crypto.createPublicKey({
key: Buffer.from(verificationKey, "base64"), // Mail Settings → Signed Event Webhook
format: "der",
type: "spki",
});
const ts = req.headers["x-twilio-email-event-webhook-timestamp"];
const valid = crypto.verify(
"sha256",
Buffer.from(ts + rawBody),
key,
Buffer.from(req.headers["x-twilio-email-event-webhook-signature"], "base64"),
);What bites
The headers say x-twilio-email because Twilio owns SendGrid; the scheme is SendGrid's own and shares nothing with Twilio's HMAC-SHA1. A verifier keyed on the header prefix alone picks the wrong algorithm.
Read more
AnyHook sits in front of endpoints that receive from SendGrid: it answers in about a second, retries on its own schedule when your server is down, and keeps every event replayable. Change one URL, keep your code.