メニュー

Expand
Rate this page:

Thanks for rating this page!

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

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 either using the REST API or the Console.

name description
CallbackUrl これらのWebhookは新規のInteractionごとに、また単なる情報目的で送信されます。
OutOfSessionCallbackUrl Sessionが存在しない、あるいはSessionがクローズされている場合のアクション (着信通話または受信SMS) 発生時におけるWebhookの送信先URLです。 開発者のサーバー (またはTwilio Function) が有効なTwiMLを返すとこれが処理されます。 これは通話に対してメッセージを再生したり、テキストメッセージへの返信を自動で行なったり、他の電話番号に転送を行なったりといった可能性を考慮して用意されたものです。
InterceptCallbackUrl 各Interactionに対して送信されます。 このWebhookに対して403でレスポンスを返した場合、Interactionを中止、ブロックします。 他のステータスを返したりタイムアウトした場合は、Interactionは継続されます。

Example Webhook Payloads

All webhook parameters will be 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

name 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
name 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
name 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
Rate this page:

ヘルプが必要ですか?

誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。