NAME

Twilio::Rest::Messaging::V1::BrandRegistration::BrandVetting - The BrandVetting resource

SYNOPSIS

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

my $brand_vetting = $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings->create($vetting_provider, \%options);
for my $brand_vetting ($client->messaging->v1->brand_registrations($brand_sid)->brand_vettings->read({}, 20)) {
  ...
}
my $brand_vetting = $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings($brand_vetting_sid)->fetch;

DESCRIPTION

A Messaging Service resource to add and get Brand Vettings.

This file holds BrandVettingList, BrandVettingPage, BrandVettingContext and BrandVettingInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

BrandVettingList

Returned by $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings. See also Twilio::ListResource.

create

my $brand_vetting = $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings->create($vetting_provider, \%options);

Returns a BrandVettingInstance.

The required values are:

$vetting_provider

One of campaign-verify or aegis.

The options are:

vetting_id

The unique ID of the vetting

read

my @records = $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

The options are:

vetting_provider

The third-party provider of the vettings to read One of campaign-verify or aegis.

stream

my $stream = $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings->stream(\%options, $limit, $page_size);

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

page

my $page = $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings->get_context($brand_vetting_sid);

Returns a BrandVettingContext, and makes no request.

BrandVettingPage

A Twilio::Page of BrandVettingInstance objects.

records_key

build_instance

Used by Twilio::Page.

BrandVettingContext

Returned by $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings($brand_vetting_sid). It makes no request until one of these methods is called.

fetch

my $brand_vetting = $client->messaging->v1->brand_registrations($brand_sid)->brand_vettings($brand_vetting_sid)->fetch;

Returns a BrandVettingInstance.

BrandVettingInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the vetting record.

brand_sid

The unique string to identify Brand Registration.

brand_vetting_sid

The Twilio SID of the third-party vetting record.

date_created

The date and time in GMT when the resource was created specified in ISO 8601 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 ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

url

The absolute URL of the Brand Vetting resource.

vetting_class

The type of vetting that has been conducted. One of “STANDARD” (Aegis) or “POLITICAL” (Campaign Verify).

vetting_id

The unique identifier of the vetting from the third-party provider.

vetting_provider

One of campaign-verify or aegis.

vetting_status

The status of the import vetting attempt. One of “PENDING,” “SUCCESS,” or “FAILED”.

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.