NAME
Twilio::Rest::Conversations::V1::Service::Configuration::Webhook - The Webhook resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $webhook = $client->conversations->v1->services($chat_service_sid)->configuration->webhooks->fetch;
$client->conversations->v1->services($chat_service_sid)->configuration->webhooks->update(\%options);
DESCRIPTION
A service webhook configuration resource manages a service-level set of callback URLs and their configuration for receiving all the corresponding service events.
This file holds WebhookContext and WebhookInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
WebhookContext
Returned by $client->conversations->v1->services($chat_service_sid)->configuration->webhooks. It makes no request until one of these methods is called.
fetch
my $webhook = $client->conversations->v1->services($chat_service_sid)->configuration->webhooks->fetch;
Fetch a specific service webhook configuration. Returns a WebhookInstance.
update
my $webhook = $client->conversations->v1->services($chat_service_sid)->configuration->webhooks->update(\%options);
Update a specific Webhook. Returns a WebhookInstance.
The options are:
filters-
The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are
onParticipantAdd,onParticipantAdded,onDeliveryUpdated,onConversationUpdated,onConversationRemove,onParticipantRemove,onConversationUpdate,onMessageAdd,onMessageRemoved,onParticipantUpdated,onConversationAdded,onMessageAdded,onConversationAdd,onConversationRemoved,onParticipantUpdate,onMessageRemove,onMessageUpdated,onParticipantRemoved,onMessageUpdateoronConversationStateUpdated. An array reference. method-
The HTTP method to be used when sending a webhook request. One of
GETorPOST. post_webhook_url-
The absolute url the post-event webhook request should be sent to.
pre_webhook_url-
The absolute url the pre-event webhook request should be sent to.
WebhookInstance
See also Twilio::InstanceResource.
It has fetch and update, which work as they do on the context.
Its fields are:
- account_sid
-
The unique ID of the Account responsible for this service.
- chat_service_sid
-
The unique ID of the Conversation Service this conversation belongs to.
- filters
-
The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are
onParticipantAdd,onParticipantAdded,onDeliveryUpdated,onConversationUpdated,onConversationRemove,onParticipantRemove,onConversationUpdate,onMessageAdd,onMessageRemoved,onParticipantUpdated,onConversationAdded,onMessageAdded,onConversationAdd,onConversationRemoved,onParticipantUpdate,onMessageRemove,onMessageUpdated,onParticipantRemoved,onMessageUpdateoronConversationStateUpdated. - method
-
One of
GETorPOST. - post_webhook_url
-
The absolute url the post-event webhook request should be sent to.
- pre_webhook_url
-
The absolute url the pre-event webhook request should be sent to.
- url
-
An absolute API resource URL for this webhook.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.