メニュー

Expand
ページを評価:

Webhook Configuration Resource

The Webhook Configuration resource allows you to precisely control the effects of account-scoped webhooks. Sending a POST request to the Webhook Configuration endpoint is equivalent to configuring session webhooks in the Twilio Console.

Good applications of the configured webhooks in Conversations include:

  • Implementing an archival system for all Conversations
  • Feeding messages into Elasticsearch
  • Implementing a profanity filter across all Conversations

Note: You can send pre-hooks and post-hooks to different targets.

Our guide to Conversations Webhooks includes the specific pre- and post-event webhooks that fire, as well as the webhook payloads.

ConfigurationWebhook properties

Resource Properties in REST API format
account_sid
sid<AC> Not PII

The unique ID of the Account responsible for this conversation.

method
enum:method Not PII

The HTTP method to be used when sending a webhook request.

filters
string[] Not PII

The list of webhook event triggers that are enabled for this Service: onMessageAdded, onMessageUpdated, onMessageRemoved, onConversationUpdated, onConversationRemoved, onParticipantAdded, onParticipantUpdated, onParticipantRemoved

pre_webhook_url
文字列 Not PII

The absolute url the pre-event webhook request should be sent to.

post_webhook_url
文字列 Not PII

The absolute url the post-event webhook request should be sent to.

target
enum:target Not PII

The routing target of the webhook. Can be ordinary or route internally to Flex

url
url Not PII

An absolute API resource API resource URL for this webhook.

Fetch a ConfigurationWebhook resource

GET
https://conversations.twilio.com/v1/Configuration/Webhooks
例 1
        
        
        
        

        Update a ConfigurationWebhook resource

        post
        https://conversations.twilio.com/v1/Configuration/Webhooks
        パラメーター
        Parameters in REST API format
        method
        オプション
        post 文字列 Not PII

        The HTTP method to be used when sending a webhook request.

        filters
        オプション
        post string[] Not PII

        The list of webhook event triggers that are enabled for this Service: onMessageAdded, onMessageUpdated, onMessageRemoved, onConversationUpdated, onConversationRemoved, onParticipantAdded, onParticipantUpdated, onParticipantRemoved

        pre_webhook_url
        オプション
        post 文字列 Not PII

        The absolute url the pre-event webhook request should be sent to.

        post_webhook_url
        オプション
        post 文字列 Not PII

        The absolute url the post-event webhook request should be sent to.

        target
        オプション
        post ienum:target Not PII

        The routing target of the webhook.

        例 1
              
              
              
              
              Enable for "onConversationUpdated" & "onMessageRemoved" events

              UPDATE: Enable all Webhooks with filters

              Enable for "onConversationUpdated" & "onMessageRemoved" events
              ページを評価:

              ヘルプが必要ですか?

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

                    
                    
                    

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

                    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