NAME
Twilio::Rest::IpMessaging::V2::Service::Channel::Webhook - The Webhook resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $webhook = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks->create($type, \%options);
for my $webhook ($client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks->read({}, 20)) {
...
}
my $webhook = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks($sid)->fetch;
$client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks($sid)->update(\%options);
$client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks($sid)->delete;
DESCRIPTION
This file holds WebhookList, WebhookPage, WebhookContext and WebhookInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
WebhookList
Returned by $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks. See also Twilio::ListResource.
create
my $webhook = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks->create($type, \%options);
Returns a WebhookInstance.
The required values are:
The options are:
configuration_filters-
An array reference.
configuration_flow_sid-
No description in the specification.
configuration_method-
One of
GETorPOST. configuration_retry_count-
No description in the specification.
configuration_triggers-
An array reference.
configuration_url-
No description in the specification.
read
my @records = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks->get_context($sid);
Returns a WebhookContext, and makes no request.
WebhookPage
A Twilio::Page of WebhookInstance objects.
records_key
build_instance
Used by Twilio::Page.
WebhookContext
Returned by $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks($sid). It makes no request until one of these methods is called.
fetch
my $webhook = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks($sid)->fetch;
Returns a WebhookInstance.
update
my $webhook = $client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks($sid)->update(\%options);
Returns a WebhookInstance.
The options are:
configuration_filters-
An array reference.
configuration_flow_sid-
No description in the specification.
configuration_method-
One of
GETorPOST. configuration_retry_count-
No description in the specification.
configuration_triggers-
An array reference.
configuration_url-
No description in the specification.
delete
$client->ip_messaging->v2->services($service_sid)->channels($channel_sid)->webhooks($sid)->delete;
Returns true.
WebhookInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- account_sid
-
No description in the specification.
- channel_sid
-
No description in the specification.
- configuration
-
No description in the specification.
- date_created
-
A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- service_sid
-
No description in the specification.
- sid
-
No description in the specification.
- type
-
No description in the specification.
- url
-
No description in the specification.
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.