NAME
Twilio::Rest::Messaging::V1::Deactivations - The Deactivations resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $deactivations = $client->messaging->v1->deactivations->fetch;
DESCRIPTION
A Deactivation resource to retrieve a list of United States phone numbers that have been deactivated by mobile carriers on a specific date.
This file holds DeactivationsContext and DeactivationsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
DeactivationsContext
Returned by $client->messaging->v1->deactivations. It makes no request until one of these methods is called.
fetch
my $deactivations = $client->messaging->v1->deactivations->fetch(\%options);
Fetch a list of all United States numbers that have been deactivated on a specific date. Returns a DeactivationsInstance.
The options are:
date-
The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format. A string, or an object with an
epochmethod. See "iso8601_date_time" in Twilio::Serialize.
DeactivationsInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- redirect_to
-
Returns an authenticated url that redirects to a file containing the deactivated numbers for the requested day. This url is valid for up to two minutes.
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.