NAME

Twilio::Rest::Verify::V2::Service::NewChallenge - The NewChallenge resource

SYNOPSIS

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

my $new_challenge = $client->verify->v2->services($service_sid)->new_challenge->create(\%body);

DESCRIPTION

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

NewChallengeContext

Returned by $client->verify->v2->services($service_sid)->new_challenge. It makes no request until one of these methods is called.

create

my $new_challenge = $client->verify->v2->services($service_sid)->new_challenge->create(\%body);

Create a Passkeys Challenge. Returns a NewChallengeInstance.

%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.

Its fields are:

factor_sid

No description in the specification.

identity

No description in the specification.

NewChallengeInstance

See also Twilio::InstanceResource.

It has create, which work as they do on the context.

Its fields are:

account_sid

The unique SID identifier of the Account.

date_created

The date that this Challenge was created, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_responded

The date that this Challenge was responded, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date that this Challenge was updated, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

details

Details provided to give context about the Challenge.

entity_sid

The unique SID identifier of the Entity.

expiration_date

The date-time when this Challenge expires, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

factor_sid

The unique SID identifier of the Factor.

factor_type

The Factor Type of this Challenge. Currently push and totp are supported. One of push, totp or passkeys.

hidden_details

Details provided to give context about the Challenge.

identity

Customer unique identity for the Entity owner of the Challenge.

Contains a dictionary of URL links to nested resources of this Challenge.

metadata

Custom metadata associated with the challenge.

options

An object that contains challenge options. Currently only used for passkeys.

responded_reason

Reason for the Challenge to be in certain status. One of none, not_needed or not_requested. One of none, not_needed or not_requested.

service_sid

The unique SID identifier of the Service.

sid

A 34 character string that uniquely identifies this Challenge.

status

The Status of this Challenge. One of pending, expired, approved or denied. One of pending, expired, approved or denied.

url

The URL of this 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.