NAME

Twilio::Rest::Verify::V2::Template - The Template resource

SYNOPSIS

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

for my $template ($client->verify->v2->templates->read({}, 20)) {
  ...
}

DESCRIPTION

This file holds TemplateList, TemplatePage and TemplateInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

TemplateList

Returned by $client->verify->v2->templates. See also Twilio::ListResource.

read

my @records = $client->verify->v2->templates->read(\%options, $limit, $page_size);

List all the available templates for a given Account. Returns the records as a list, fetching as many pages as it needs.

The options are:

friendly_name

String filter used to query templates with a given friendly name.

stream

my $stream = $client->verify->v2->templates->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->verify->v2->templates->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->verify->v2->templates->get_page($url);

Fetches the page at a URL given by Twilio.

TemplatePage

A Twilio::Page of TemplateInstance objects.

records_key

build_instance

Used by Twilio::Page.

TemplateInstance

See also Twilio::InstanceResource.

Its fields are:

account_sid

The unique SID identifier of the Account.

channels

A list of channels that support the Template. Can include: sms, voice.

friendly_name

A descriptive string that you create to describe a Template. It can be up to 32 characters long.

sid

A 34 character string that uniquely identifies a Verification Template.

translations

An object that contains the different translations of the template. Every translation is identified by the language short name and contains its respective information as the approval status, text and created/modified date.

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.