NAME
Twilio::Rest::Numbers::V1::SmsVerification - The SmsVerification resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $sms_verification = $client->numbers->v1->sms_verifications->create(\%body);
DESCRIPTION
This file holds SmsVerificationList and SmsVerificationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
SmsVerificationList
Returned by $client->numbers->v1->sms_verifications. See also Twilio::ListResource.
create
my $sms_verification = $client->numbers->v1->sms_verifications->create(\%body);
Returns a SmsVerificationInstance.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
friendly_name-
A human-readable name for the caller ID.
locale-
The locale for the verification SMS message.
to-
Required. The phone number to verify in E.164 format.
SmsVerificationInstance
See also Twilio::InstanceResource.
Its fields are:
- send_code_attempts
-
An array of verification attempt objects.
- to
-
The phone number being verified in E.164 format.
- verification_sid
-
The unique SID of this verification 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.