NAME
Twilio::Rest::Verify::V2::Service::Entity::Challenge::Notification - The Notification resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $notification = $client->verify->v2->services($service_sid)->entities($identity)->challenges($challenge_sid)->notifications->create(\%options);
DESCRIPTION
This file holds NotificationList and NotificationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
NotificationList
Returned by $client->verify->v2->services($service_sid)->entities($identity)->challenges($challenge_sid)->notifications. See also Twilio::ListResource.
create
my $notification = $client->verify->v2->services($service_sid)->entities($identity)->challenges($challenge_sid)->notifications->create(\%options);
Create a new Notification for the corresponding Challenge. Returns a NotificationInstance.
The options are:
ttl-
How long, in seconds, the notification is valid. Can be an integer between 0 and 300. Default is 300. Delivery is attempted until the TTL elapses, even if the device is offline. 0 means that the notification delivery is attempted immediately, only once, and is not stored for future delivery.
NotificationInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The unique SID identifier of the Account.
- challenge_sid
-
The unique SID identifier of the Challenge.
- date_created
-
The date that this Notification was created, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- entity_sid
-
The unique SID identifier of the Entity.
- identity
-
Customer unique identity for the Entity owner of the Challenge. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
- priority
-
The priority of the notification. For
pushChallenges it's alwayshighwhich sends the notification immediately, and can wake up a sleeping device. - service_sid
-
The unique SID identifier of the Service.
- sid
-
A 34 character string that uniquely identifies this Notification.
- ttl
-
How long, in seconds, the notification is valid. Max: 5 minutes
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.