NAME
Twilio::Rest::Verify::V2::Service::RateLimit - The RateLimit resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $rate_limit = $client->verify->v2->services($service_sid)->rate_limits->create($unique_name, \%options);
for my $rate_limit ($client->verify->v2->services($service_sid)->rate_limits->read({}, 20)) {
...
}
my $rate_limit = $client->verify->v2->services($service_sid)->rate_limits($sid)->fetch;
$client->verify->v2->services($service_sid)->rate_limits($sid)->update(\%options);
$client->verify->v2->services($service_sid)->rate_limits($sid)->delete;
DESCRIPTION
This file holds RateLimitList, RateLimitPage, RateLimitContext and RateLimitInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
RateLimitList
Returned by $client->verify->v2->services($service_sid)->rate_limits. See also Twilio::ListResource.
create
my $rate_limit = $client->verify->v2->services($service_sid)->rate_limits->create($unique_name, \%options);
Create a new Rate Limit for a Service. Returns a RateLimitInstance.
The required values are:
$unique_name-
Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. This value should not contain PII.
The options are:
description-
Description of this Rate Limit
read
my @records = $client->verify->v2->services($service_sid)->rate_limits->read(\%options, $limit, $page_size);
Retrieve a list of all Rate Limits for a service. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->verify->v2->services($service_sid)->rate_limits->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->verify->v2->services($service_sid)->rate_limits->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->verify->v2->services($service_sid)->rate_limits->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->verify->v2->services($service_sid)->rate_limits->get_context($sid);
Returns a RateLimitContext, and makes no request.
RateLimitPage
A Twilio::Page of RateLimitInstance objects.
records_key
build_instance
Used by Twilio::Page.
RateLimitContext
Returned by $client->verify->v2->services($service_sid)->rate_limits($sid). It makes no request until one of these methods is called.
fetch
my $rate_limit = $client->verify->v2->services($service_sid)->rate_limits($sid)->fetch;
Fetch a specific Rate Limit. Returns a RateLimitInstance.
update
my $rate_limit = $client->verify->v2->services($service_sid)->rate_limits($sid)->update(\%options);
Update a specific Rate Limit. Returns a RateLimitInstance.
The options are:
description-
Description of this Rate Limit
delete
$client->verify->v2->services($service_sid)->rate_limits($sid)->delete;
Delete a specific Rate Limit. Returns true.
buckets
my $list = $object->buckets;
my $context = $object->buckets($sid);
See Twilio::Rest::Verify::V2::Service::RateLimit::Bucket.
RateLimitInstance
See also Twilio::InstanceResource.
It has fetch, update, delete and buckets, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Rate Limit resource.
- date_created
-
The date and time in GMT when the resource was created specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date and time in GMT when the resource was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- description
-
Description of this Rate Limit
- links
-
The URLs of related resources.
- service_sid
-
The SID of the Service the resource is associated with.
- sid
-
A 34 character string that uniquely identifies this Rate Limit.
- unique_name
-
Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. This value should not contain PII.
- 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.