Webhookはユーザー定義のHTTPコールバックです。 これらはWebアプリケーション内で何らかのイベントによってトリガーされ、異なるアプリケーション、またはTwilioのようなサードパーティーのAPIとの統合を容易にします。

Want to learn more about how Twilio uses webhooks? Check out the Webhooks Hub in our developer documentation!


Twilio uses webhooks to let your application know when events happen, such as receiving an SMS message or getting an incoming phone call. When the event occurs, Twilio makes an HTTP request (usually a POST or a GET) to the URL you configured for the webhook. Twilio's request will include details of the event such as the incoming phone number or the body of an incoming message. Many other modern web services like GitHub and Slack also make use of webhooks to communicate events.

How webhooks work

Webhookを処理するのに必要なことは、HTTPリクエストを受け入れる小規模なWebアプリケーションを構築することのみです。 すでにWebアプリケーションのセットアップが住んでいれば、Webhookにはアプリケーションに新規URLを追加するだけで簡単に行えます。

If you don't already have a web application, almost all server-side programming languages offer frameworks to help you build one. Examples include:

Webhooks can also be handled by serverless frameworks like AWS Lambda and Azure Functions. Really anything that can receive and reply to an HTTP request will do. Got a Raspberry Pi lying around?

Whichever framework and language you choose, webhooks function the same for every Twilio application. An HTTP request will be made to a URI that you provide to Twilio. Your application performs whatever logic you feel necessary - read/write from a database, integrate with another API, or perform some computation - then replies to Twilio with a TwiML response with the instructions you want Twilio to perform.

Ready to do more with Webhooks?

Check out these tutorials that show you how to work with webhooks on a variety of platforms:



Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!


Get link

Get a free personal referral link here


Give $10

Your user signs up and upgrade using link


Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more