NAME

Twilio::Rest::Conversations::V1::Configuration::Webhook - The Webhook resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $webhook = $client->conversations->v1->configuration->webhooks->fetch;
$client->conversations->v1->configuration->webhooks->update(\%options);

DESCRIPTION

A Webhook resource manages a service-level set of callback URLs and their configuration for receiving all conversation 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->configuration->webhooks. It makes no request until one of these methods is called.

fetch

my $webhook = $client->conversations->v1->configuration->webhooks->fetch;

Returns a WebhookInstance.

update

my $webhook = $client->conversations->v1->configuration->webhooks->update(\%options);

Returns a WebhookInstance.

The options are:

filters

The list of webhook event triggers that are enabled for this Service: onMessageAdded, onMessageUpdated, onMessageRemoved, onMessageAdd, onMessageUpdate, onMessageRemove, onConversationUpdated, onConversationRemoved, onConversationAdd, onConversationAdded, onConversationRemove, onConversationUpdate, onConversationStateUpdated, onParticipantAdded, onParticipantUpdated, onParticipantRemoved, onParticipantAdd, onParticipantRemove, onParticipantUpdate, onDeliveryUpdated, onUserAdded, onUserUpdate, onUserUpdated An array reference.

method

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

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.

target

One of webhook or flex.

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 conversation.

filters

The list of webhook event triggers that are enabled for this Service: onMessageAdded, onMessageUpdated, onMessageRemoved, onMessageAdd, onMessageUpdate, onMessageRemove, onConversationUpdated, onConversationRemoved, onConversationAdd, onConversationAdded, onConversationRemove, onConversationUpdate, onConversationStateUpdated, onParticipantAdded, onParticipantUpdated, onParticipantRemoved, onParticipantAdd, onParticipantRemove, onParticipantUpdate, onDeliveryUpdated, onUserAdded, onUserUpdate, onUserUpdated

method

One of GET or POST.

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.

target

One of webhook or flex.

url

An absolute API resource 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.