--- url: "https://webhooks.fyi/webhook-directory/twilio" titulek: "Twilio Webhooks Specs | Examples| How to integrate" h1: "Twilio Webhook Specs, Events, and Examples" popis: "Webhook specificactions for Twilio including Supported Events, Example Apps, Security Specs, and Documentations." jazyk: "en" kanonicka: "https://webhooks.fyi/webhook-directory/twilio" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:20:17" znaku: 1767 slov: 208 kodovani: "utf-8" sha256: "d200d05701a4dbba2d1ad3002da68c126b4e9c729a38a16c193efa6d2972ca5d" --- Twilio uses webhooks to notify third-party apps of events in its main products including voice calls initiated, SMS messages sent, and dialogs started in autopilot. You can wire Twilio events to trigger action in third-party apps such as record when someone responds to an SMS message. | Specifications | **[HMAC Authentication](/security/hmac)****[Replay Prevention](/security/replay-prevention)**: ❌**[Forward Compatibility](/ops-experience/versioning)**: ❌**[Zero Downtime Rotation](/ops-experience/key-rotation)**: ❌ | | --- | --- | | Supported Events | Twilio providers different events for each product — Voice, SMS, Conversations, Sync, Authy, Chat, and Autopilot. The full list of events for each product is available in its **[Official Doc ↗](https://www.twilio.com/docs/usage/webhooks#webhooks-by-product)** | | Security Headers | **Signature Header**: `X-Twilio-Signature`**Hash**: sha1**Encode**: base64**payload**: `hash` | | Documentation | [Official Doc ↗](https://www.twilio.com/docs/usage/security#validating-requests) | | SDKs and Sample Code | [Voice Webhook: Example ↗](https://www.twilio.com/docs/voice/tutorials/how-to-respond-to-incoming-phone-calls/node)[SMS Webhook: Example ↗](https://www.twilio.com/docs/sms/tutorials/how-to-receive-and-reply-node-js)[Authy Webhook: Example ↗](https://github.com/AuthySE/webhooks-api) | --- ## Sample Validation ``` const crypto = require('crypto') const sigHeader = 'X-Twilio-Signature' const hashAlgo = 'sha1' const encode = 'base64' const hmacSecret = process.env.WEBHOOK_SECRET app.post('/twilio-webhook', (req, res) => { const message = req.body const digest = crypto.createHmac(hashAlgo, hmacSecret) .update(message).digest(encode) if (request.headers[sigHeader] !== digest) { res.status(401).send('Request unauthorized') }else{ res.json({ message: "Success" }) } }) ```