NAME

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

SYNOPSIS

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

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

DESCRIPTION

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

ApproveChallengeList

Returned by $client->verify->v2->services($service_sid)->approve_challenge. See also Twilio::ListResource.

update

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

Approve a Passkeys challenge. Returns a ApproveChallengeInstance.

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

Its fields are:

authenticatorAttachment

Required. A string that indicates the mechanism by which the WebAuthn implementation is attached to the authenticator at the time the associated navigator.credentials.create() or navigator.credentials.get() call completes. One of platform or cross-platform.

id

Required. A base64url encoded representation of rawId.

rawId

Required. The globally unique identifier for this PublicKeyCredential.

response

Required. The result of a WebAuthn authentication via a navigator.credentials.get() request, as specified in AuthenticatorAttestationResponse.

type

The valid credential types supported by the API. The values of this enumeration are used for versioning the AuthenticatorAssertion and AuthenticatorAttestation structures according to the type of the authenticator. Must be public-key.

ApproveChallengeInstance

See also Twilio::InstanceResource.

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.