NAME
Twilio::Rest::Numbers::V1::PortingWebhookConfiguration - The PortingWebhookConfiguration resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $porting_webhook_configuration = $client->numbers->v1->porting_webhook_configurations->create(\%body);
DESCRIPTION
This file holds PortingWebhookConfigurationList and PortingWebhookConfigurationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
PortingWebhookConfigurationList
Returned by $client->numbers->v1->porting_webhook_configurations. See also Twilio::ListResource.
create
my $porting_webhook_configuration = $client->numbers->v1->porting_webhook_configurations->create(\%body);
Create a Webhook Configuration. Returns a PortingWebhookConfigurationInstance.
%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.
PortingWebhookConfigurationInstance
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_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_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.