NAME

Twilio::Rest::Messaging::V1::Service::DestinationAlphaSender - The DestinationAlphaSender resource

SYNOPSIS

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

my $destination_alpha_sender = $client->messaging->v1->services($service_sid)->destination_alpha_senders->create($alpha_sender, \%options);
for my $destination_alpha_sender ($client->messaging->v1->services($service_sid)->destination_alpha_senders->read({}, 20)) {
  ...
}
my $destination_alpha_sender = $client->messaging->v1->services($service_sid)->destination_alpha_senders($sid)->fetch;
$client->messaging->v1->services($service_sid)->destination_alpha_senders($sid)->delete;

DESCRIPTION

A Messaging Service resource to add, fetch or remove Destination and Default Alpha Sender IDs from a Messaging Service. Destination Alpha Sender can send to a particular ISO country code. Default Alpha Senders can send to all countries.

This file holds DestinationAlphaSenderList, DestinationAlphaSenderPage, DestinationAlphaSenderContext and DestinationAlphaSenderInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

DestinationAlphaSenderList

Returned by $client->messaging->v1->services($service_sid)->destination_alpha_senders. See also Twilio::ListResource.

create

my $destination_alpha_sender = $client->messaging->v1->services($service_sid)->destination_alpha_senders->create($alpha_sender, \%options);

Returns a DestinationAlphaSenderInstance.

The required values are:

$alpha_sender

The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, hyphen -, plus +, underscore _ and ampersand &. This value cannot contain only numbers.

The options are:

iso_country_code

The Optional Two Character ISO Country Code the Alphanumeric Sender ID will be used for. If the IsoCountryCode is not provided, a default Alpha Sender will be created that can be used across all countries.

read

my @records = $client->messaging->v1->services($service_sid)->destination_alpha_senders->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

The options are:

iso_country_code

Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code.

stream

my $stream = $client->messaging->v1->services($service_sid)->destination_alpha_senders->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->messaging->v1->services($service_sid)->destination_alpha_senders->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->messaging->v1->services($service_sid)->destination_alpha_senders->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->messaging->v1->services($service_sid)->destination_alpha_senders->get_context($sid);

Returns a DestinationAlphaSenderContext, and makes no request.

DestinationAlphaSenderPage

A Twilio::Page of DestinationAlphaSenderInstance objects.

records_key

build_instance

Used by Twilio::Page.

DestinationAlphaSenderContext

Returned by $client->messaging->v1->services($service_sid)->destination_alpha_senders($sid). It makes no request until one of these methods is called.

fetch

my $destination_alpha_sender = $client->messaging->v1->services($service_sid)->destination_alpha_senders($sid)->fetch;

Returns a DestinationAlphaSenderInstance.

delete

$client->messaging->v1->services($service_sid)->destination_alpha_senders($sid)->delete;

Returns true.

DestinationAlphaSenderInstance

See also Twilio::InstanceResource.

It has fetch and delete, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that created the AlphaSender resource.

alpha_sender

The Alphanumeric Sender ID string.

capabilities

An array of values that describe whether the number can receive calls or messages. Can be: SMS.

date_created

The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

iso_country_code

The Two Character ISO Country Code the Alphanumeric Sender ID will be used for. For Default Alpha Senders that work across countries, this value will be an empty string

service_sid

The SID of the Service the resource is associated with.

sid

The unique string that we created to identify the AlphaSender resource.

url

The absolute URL of the AlphaSender resource.

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.