NAME
Twilio::Rest::Verify::V2::Service::VerificationCheck - The VerificationCheck resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $verification_check = $client->verify->v2->services($service_sid)->verification_checks->create(\%options);
DESCRIPTION
This file holds VerificationCheckList and VerificationCheckInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
VerificationCheckList
Returned by $client->verify->v2->services($service_sid)->verification_checks. See also Twilio::ListResource.
create
my $verification_check = $client->verify->v2->services($service_sid)->verification_checks->create(\%options);
challenge a specific Verification Check. Returns a VerificationCheckInstance.
The options are:
amount-
The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
code-
The 4-10 character string being verified.
payee-
The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
sna_client_token-
A sna client token received in sna url invocation response needs to be passed in Verification Check request and should match to get successful response.
to-
The phone number or email to verify. Either this parameter or the
verification_sidmust be specified. Phone numbers must be in E.164 format. verification_sid-
A SID that uniquely identifies the Verification Check. Either this parameter or the
tophone number/email must be specified.
VerificationCheckInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The SID of the Account that created the VerificationCheck resource.
- amount
-
The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
- channel
-
One of
sms,call,email,whatsapporsna. - date_created
-
The ISO 8601 date and time in GMT when the Verification Check resource was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The ISO 8601 date and time in GMT when the Verification Check resource was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- payee
-
The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
- service_sid
-
The SID of the Service the resource is associated with.
- sid
-
The unique string that we created to identify the VerificationCheck resource.
- sna_attempts_error_codes
-
List of error codes as a result of attempting a verification using the
snachannel. The error codes are chronologically ordered, from the first attempt to the latest attempt. This will be an empty list if no errors occured ornullif the last channel used wasn'tsna. - status
-
The status of the verification. Can be:
pending,approved,canceled,max_attempts_reached,deleted,failedorexpired. - to
-
The phone number or email being verified. Phone numbers must be in E.164 format.
- valid
-
Use "status" instead. Legacy property indicating whether the verification was successful.
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.