メニュー

Expand
ページを評価:

Webhook

Twilio Proxy can call a webhook in your system to notify you of various events. To enable webhooks, configure an optional callback URL on your Proxy Service using either the REST API or the Console.

名前 概要
CallbackUrl これらのWebhookは新規のInteractionごとに、また単なる情報目的で送信されます。
InterceptCallbackUrl Fires on each interaction. If responded to with a 403 to this webhook we will abort/block the interaction. Any other status or timeout, the interaction continues.
OutOfSessionCallbackUrl Sessionが存在しない、あるいはSessionがクローズされている場合のアクション (着信通話または受信SMS) 発生時におけるWebhookの送信先URLです。 開発者のサーバー (またはTwilio Function) が有効なTwiMLを返すとこれが処理されます。 これは通話に対してメッセージを再生したり、テキストメッセージへの返信を自動で行なったり、他の電話番号に転送を行なったりといった可能性を考慮して用意されたものです。

Example webhook payloads

All webhook parameters are submitted as form parameters (application/x-www-form-urlencoded). Each webhook above will pass you specific parameters as shown below with their example values.

CallbackUrl

名前 Example Value
inboundParticipantSid KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
inboundResourceSid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
inboundResourceStatus completed
inboundResourceType call
inboundResourceUrl https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json
interactionAccountSid ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
interactionData
interactionDateCreated 2018-03-13T22:42:54Z
interactionDateUpdated 2018-03-13T22:42:56Z
interactionServiceSid KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
interactionSessionSid KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
interactionSid KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
interactionType Voice
outboundParticipantSid KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
outboundResourceSid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
outboundResourceStatus initiated
outboundResourceType call
outboundResourceUrl https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json

InterceptCallbackUrl

名前 Example Value
inboundParticipantSid KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
inboundResourceSid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
inboundResourceStatus completed
inboundResourceType call
inboundResourceUrl https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json
interactionAccountSid ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
interactionData
interactionDateCreated 2018-03-13T22:42:54Z
interactionDateUpdated 2018-03-13T22:42:54Z
interactionServiceSid KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
interactionSessionSid KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
interactionSid KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
interactionType Voice

OutOfSessionCallbackUrl

名前 Example Value
AccountSid ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
AddOns {"status":"successful","message":null,"code":null,"results":{}}
ApiVersion 2010-04-01
Called +1415XXXXXXX
CalledCity OAKLAND
CalledCountry US
CalledState CA
CalledZip 94612
caller +1951XXXXXXX
CallerCity CORONA
CallerCountry US
CallerState CA
CallerZip 92879
CallSid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
CallStatus ringing
Direction inbound
From +1951XXXXXXX
FromCity CORONA
FromCountry US
FromState CA
FromZip 92879
inboundParticipantAccountSid ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
inboundParticipantDateCreated 2018-03-14T06:22:05Z
inboundParticipantDateUpdated 2018-03-14T06:22:05Z
inboundParticipantFriendlyName user_cjeqp7cxv00018dd5ho0n2792
inboundParticipantIdentifier +1951XXXXXXX
inboundParticipantProxyIdentifier +1415XXXXXXX
inboundParticipantProxyIdentifierSid PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
inboundParticipantServiceSid KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
inboundParticipantSessionSid KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
inboundParticipantSid KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
outboundParticipantAccountSid AC4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
outboundParticipantDateCreated 2018-03-14T06:22:06Z
outboundParticipantDateUpdated 2018-03-14T06:22:06Z
outboundParticipantFriendlyName user_cjeqp7d7w00028dd5d7bus6vj
outboundParticipantIdentifier +1707XXXXXXX
outboundParticipantProxyIdentifier +1707XXXXXXX
outboundParticipantProxyIdentifierSid PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
outboundParticipantServiceSid KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
outboundParticipantSessionSid KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
outboundParticipantSid KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sessionAccountSid ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sessionClosedReason api
sessionDateCreated 2018-03-14T06:22:05Z
sessionDateEnded 2018-03-14T06:22:06Z
sessionDateUpdated 2018-03-14T06:22:06Z
sessionMode voice-only
sessionServiceSid KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sessionSid KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sessionStatus closed
sessionUniqueName session_cjeqp7cot00008dd5v4rbowgp
To +1415XXXXXXX
ToCity OAKLAND
ToCountry US
ToState CA
ToZip 94612
ページを評価:

ヘルプが必要ですか?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

        
        
        

        フィードバックくださりありがとうございます!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

        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!

        ステップ1

        Get link

        Get a free personal referral link here

        ステップ2:

        Give $10

        Your user signs up and upgrade using link

        ステップ3

        Get $10

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