NAME

Twilio::Rest::Numbers::V1::VoiceVerification - The VoiceVerification resource

SYNOPSIS

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

my $voice_verification = $client->numbers->v1->voice_verifications->create(\%body);

DESCRIPTION

This file holds VoiceVerificationList and VoiceVerificationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

VoiceVerificationList

Returned by $client->numbers->v1->voice_verifications. See also Twilio::ListResource.

create

my $voice_verification = $client->numbers->v1->voice_verifications->create(\%body);

Returns a VoiceVerificationInstance.

%body is sent as JSON. It takes the names Twilio's API documentation uses.

Its fields are:

call_delay

Number of seconds to delay the verification call (0-60).

custom_code

A custom verification code to use instead of a generated one.

custom_success_message

Custom message to play after successful verification.

extension

Phone extension to dial after connecting.

friendly_name

A human-readable name for the caller ID.

phone_number

Required. The phone number to verify in E.164 format.

status_callback

URL to receive status callback events.

status_callback_method

HTTP method for status callback requests. One of HEAD, GET, POST, PATCH, PUT or DELETE.

VoiceVerificationInstance

See also Twilio::InstanceResource.

Its fields are:

account_sid

The Account SID that owns this verification.

call_sid

The Call SID for the verification call.

friendly_name

A human-readable name for this caller ID.

phone_number

The phone number being verified in E.164 format.

validation_code

The 6-digit validation code to be entered during the call.

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.