NAME

Twilio::Rest::Api::V2010::Account::OutgoingCallerId - The OutgoingCallerId resource

SYNOPSIS

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

for my $outgoing_caller_id ($client->outgoing_caller_ids->read({}, 20)) {
  ...
}
my $outgoing_caller_id = $client->outgoing_caller_ids($sid)->fetch;
$client->outgoing_caller_ids($sid)->update(\%options);
$client->outgoing_caller_ids($sid)->delete;

DESCRIPTION

An OutgoingCallerId resource represents a single verified number that may be used as a caller ID when making outgoing calls via the REST API and within the TwiML <Dial> verb.

This file holds OutgoingCallerIdList, OutgoingCallerIdPage, OutgoingCallerIdContext and OutgoingCallerIdInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

OutgoingCallerIdList

Returned by $client->outgoing_caller_ids. See also Twilio::ListResource.

read

my @records = $client->outgoing_caller_ids->read(\%options, $limit, $page_size);

Retrieve a list of outgoing-caller-ids belonging to the account used to make the request. Returns the records as a list, fetching as many pages as it needs.

The options are:

friendly_name

The string that identifies the OutgoingCallerId resources to read.

phone_number

The phone number of the OutgoingCallerId resources to read.

stream

my $stream = $client->outgoing_caller_ids->stream(\%options, $limit, $page_size);

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

page

my $page = $client->outgoing_caller_ids->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->outgoing_caller_ids->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->outgoing_caller_ids->get_context($sid);

Returns a OutgoingCallerIdContext, and makes no request.

OutgoingCallerIdPage

A Twilio::Page of OutgoingCallerIdInstance objects.

records_key

build_instance

Used by Twilio::Page.

OutgoingCallerIdContext

Returned by $client->outgoing_caller_ids($sid). It makes no request until one of these methods is called.

fetch

my $outgoing_caller_id = $client->outgoing_caller_ids($sid)->fetch;

Fetch an outgoing-caller-id belonging to the account used to make the request. Returns a OutgoingCallerIdInstance.

update

my $outgoing_caller_id = $client->outgoing_caller_ids($sid)->update(\%options);

Updates the caller-id. Returns a OutgoingCallerIdInstance.

The options are:

friendly_name

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

delete

$client->outgoing_caller_ids($sid)->delete;

Delete the caller-id specified from the account. Returns true.

OutgoingCallerIdInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the OutgoingCallerId resource.

date_created

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

date_updated

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

friendly_name

The string that you assigned to describe the resource.

phone_number

The phone number in E.164 format, which consists of a + followed by the country code and subscriber number.

sid

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

uri

The URI of the resource, relative to https://api.twilio.com.

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.