メニュー

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?

Conversation Webhook Resource

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

Good applications of Conversation Webhooks 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.

ConversationWebhook 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 URL for this webhook.

Fetch a ConversationWebhook resource

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

        Update a ConversationWebhook resource

        post
        https://conversations.twilio.com/v1/Conversations/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. Can be ordinary or route internally to Flex

        例 1
              
              
              
              
              Rate this page:

              ヘルプが必要ですか?

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