NAME

Twilio::Rest::Numbers::V1::Webhook - The Webhook resource

SYNOPSIS

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

my $webhook = $client->numbers->v1->webhook->fetch;

DESCRIPTION

This file holds WebhookList and WebhookInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

WebhookList

Returned by $client->numbers->v1->webhook. See also Twilio::ListResource.

fetch

my $webhook = $client->numbers->v1->webhook->fetch;

Allows to fetch the webhook configuration. Returns a WebhookInstance.

WebhookInstance

See also Twilio::InstanceResource.

Its fields are:

notifications_of

A list to filter what notification events to receive for this account and its sub accounts. If it is an empty list, then it means that there are no filters for the notifications events to send in each webhook and all events will get sent.

port_in_target_date_created

Creation date for the port in webhook configuration A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

port_in_target_url

The complete webhook url that will be called when a notification event for port in request or port in phone number happens

port_out_target_date_created

Creation date for the port out webhook configuration A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

port_out_target_url

The complete webhook url that will be called when a notification event for a port out phone number happens.

url

The URL of the webhook configuration request

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.