NAME

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

SYNOPSIS

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

my $validation_request = $client->validation_requests->create($phone_number, \%options);

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 ValidationRequestList and ValidationRequestInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ValidationRequestList

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

create

my $validation_request = $client->validation_requests->create($phone_number, \%options);

Returns a ValidationRequestInstance.

The required values are:

$phone_number

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

The options are:

call_delay

The number of seconds to delay before initiating the verification call. Can be an integer between 0 and 60, inclusive. The default is 0.

extension

The digits to dial after connecting the verification call.

friendly_name

A descriptive string that you create to describe the new caller ID resource. It can be up to 64 characters long. The default value is a formatted version of the phone number.

status_callback

The URL we should call using the status_callback_method to send status information about the verification process to your application.

status_callback_method

The HTTP method we should use to call status_callback. Can be: GET or POST, and the default is POST. One of GET or POST.

ValidationRequestInstance

See also Twilio::InstanceResource.

Its fields are:

account_sid

The SID of the Account responsible for the Caller ID.

call_sid

The SID of the Call the Caller ID is associated with.

friendly_name

The string that you assigned to describe the resource.

phone_number

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

validation_code

The 6 digit validation code that someone must enter to validate the Caller ID when phone_number is called.

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.