NAME

Twilio::Rest::Messaging::V1::TollfreeVerification - The TollfreeVerification resource

SYNOPSIS

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

my $tollfree_verification = $client->messaging->v1->tollfree_verifications->create($business_name, $business_website, $notification_email, $use_case_categories, $use_case_summary, $production_message_sample, $opt_in_image_urls, $opt_in_type, $message_volume, $tollfree_phone_number_sid, \%options);
for my $tollfree_verification ($client->messaging->v1->tollfree_verifications->read({}, 20)) {
  ...
}
my $tollfree_verification = $client->messaging->v1->tollfree_verifications($sid)->fetch;
$client->messaging->v1->tollfree_verifications($sid)->update(\%options);
$client->messaging->v1->tollfree_verifications($sid)->delete;

DESCRIPTION

A Messaging resource to create and retrieve Tollfree Verifications.

This file holds TollfreeVerificationList, TollfreeVerificationPage, TollfreeVerificationContext and TollfreeVerificationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

TollfreeVerificationList

Returned by $client->messaging->v1->tollfree_verifications. See also Twilio::ListResource.

create

my $tollfree_verification = $client->messaging->v1->tollfree_verifications->create($business_name, $business_website, $notification_email, $use_case_categories, $use_case_summary, $production_message_sample, $opt_in_image_urls, $opt_in_type, $message_volume, $tollfree_phone_number_sid, \%options);

Create a tollfree verification. Returns a TollfreeVerificationInstance.

The required values are:

$business_name

The name of the business or organization using the Tollfree number.

$business_website

The website of the business or organization using the Tollfree number.

$notification_email

The email address to receive the notification about the verification result. .

$use_case_categories

One of TWO_FACTOR_AUTHENTICATION, ACCOUNT_NOTIFICATIONS, CUSTOMER_CARE, CHARITY_NONPROFIT, DELIVERY_NOTIFICATIONS, FRAUD_ALERT_MESSAGING, EVENTS, HIGHER_EDUCATION, K12, MARKETING, POLLING_AND_VOTING_NON_POLITICAL, POLITICAL_ELECTION_CAMPAIGNS, PUBLIC_SERVICE_ANNOUNCEMENT or SECURITY_ALERT. An array reference.

$use_case_summary

Use this to further explain how messaging is used by the business or organization.

$production_message_sample

An example of message content, i.e. a sample message.

$opt_in_image_urls

Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. An array reference.

$opt_in_type

One of VERBAL, WEB_FORM, PAPER_FORM, VIA_TEXT, MOBILE_QR_CODE, IMPORT or IMPORT_PLEASE_REPLACE.

$message_volume

Estimate monthly volume of messages from the Tollfree Number.

$tollfree_phone_number_sid

The SID of the Phone Number associated with the Tollfree Verification.

The options are:

additional_information

Additional information to be provided for verification.

age_gated_content

Indicates if the content is age gated.

business_city

The city of the business or organization using the Tollfree number.

business_contact_email

The email address of the contact for the business or organization using the Tollfree number.

business_contact_first_name

The first name of the contact for the business or organization using the Tollfree number.

business_contact_last_name

The last name of the contact for the business or organization using the Tollfree number.

business_contact_phone

The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.

business_country

The country of the business or organization using the Tollfree number.

business_postal_code

The postal code of the business or organization using the Tollfree number.

business_registration_authority

One of EIN, CBN, CRN, PROVINCIAL_NUMBER, VAT, ACN, ABN, BRN, SIREN, SIRET, NZBN, USt-IdNr, CIF, NIF, CNPJ, UID, NEQ or OTHER.

business_registration_country

The country where the business is registered. Required for all business types except SOLE_PROPRIETOR.

business_registration_number

A legally recognized business registration number. Required for all business types except SOLE_PROPRIETOR.

business_registration_phone_number

The E.164 formatted number associated with the business.

business_state_province_region

The state/province/region of the business or organization using the Tollfree number.

business_street_address

The address of the business or organization using the Tollfree number.

business_street_address2

The address of the business or organization using the Tollfree number.

business_type

One of PRIVATE_PROFIT, PUBLIC_PROFIT, SOLE_PROPRIETOR, NON_PROFIT or GOVERNMENT.

customer_profile_sid

Customer's Profile Bundle BundleSid.

doing_business_as

Trade name, sub entity, or downstream business name of business being submitted for verification

external_reference_id

An optional external reference ID supplied by customer and echoed back on status retrieval.

help_message_sample

A sample help message provided to users.

opt_in_confirmation_message

The confirmation message sent to users when they opt in to receive messages.

opt_in_keywords

List of keywords that users can text in to opt in to receive messages. An array reference.

privacy_policy_url

The URL to the privacy policy for the business or organization.

terms_and_conditions_url

The URL to the terms and conditions for the business or organization.

vetting_id

The unique ID of the vetting

vetting_provider

Must be CAMPAIGN_VERIFY.

read

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

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

The options are:

external_reference_id

Customer supplied reference id for the Tollfree Verification record.

include_sub_accounts

Whether to include Tollfree Verifications from sub accounts in list response.

status

The compliance status of the Tollfree Verification record. One of PENDING_REVIEW, IN_REVIEW, TWILIO_APPROVED or TWILIO_REJECTED.

tollfree_phone_number_sid

The SID of the Phone Number associated with the Tollfree Verification.

trust_product_sid

The trust product sids / tollfree bundle sids of tollfree verifications An array reference.

stream

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

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

page

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

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

get_page

my $page = $client->messaging->v1->tollfree_verifications->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->messaging->v1->tollfree_verifications->get_context($sid);

Returns a TollfreeVerificationContext, and makes no request.

TollfreeVerificationPage

A Twilio::Page of TollfreeVerificationInstance objects.

records_key

build_instance

Used by Twilio::Page.

TollfreeVerificationContext

Returned by $client->messaging->v1->tollfree_verifications($sid). It makes no request until one of these methods is called.

fetch

my $tollfree_verification = $client->messaging->v1->tollfree_verifications($sid)->fetch;

Retrieve a tollfree verification. Returns a TollfreeVerificationInstance.

update

my $tollfree_verification = $client->messaging->v1->tollfree_verifications($sid)->update(\%options);

Edit a tollfree verification. Returns a TollfreeVerificationInstance.

The options are:

additional_information

Additional information to be provided for verification.

age_gated_content

Indicates if the content is age gated.

business_city

The city of the business or organization using the Tollfree number.

business_contact_email

The email address of the contact for the business or organization using the Tollfree number.

business_contact_first_name

The first name of the contact for the business or organization using the Tollfree number.

business_contact_last_name

The last name of the contact for the business or organization using the Tollfree number.

business_contact_phone

The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.

business_country

The country of the business or organization using the Tollfree number.

business_name

The name of the business or organization using the Tollfree number.

business_postal_code

The postal code of the business or organization using the Tollfree number.

business_registration_authority

One of EIN, CBN, CRN, PROVINCIAL_NUMBER, VAT, ACN, ABN, BRN, SIREN, SIRET, NZBN, USt-IdNr, CIF, NIF, CNPJ, UID, NEQ or OTHER.

business_registration_country

Country business is registered in

business_registration_number

A legally recognized business registration number

business_registration_phone_number

The E.164 formatted number associated with the business.

business_state_province_region

The state/province/region of the business or organization using the Tollfree number.

business_street_address

The address of the business or organization using the Tollfree number.

business_street_address2

The address of the business or organization using the Tollfree number.

business_type

One of PRIVATE_PROFIT, PUBLIC_PROFIT, SOLE_PROPRIETOR, NON_PROFIT or GOVERNMENT.

business_website

The website of the business or organization using the Tollfree number.

doing_business_as

Trade name, sub entity, or downstream business name of business being submitted for verification

edit_reason

Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.

help_message_sample

A sample help message provided to users.

message_volume

Estimate monthly volume of messages from the Tollfree Number.

notification_email

The email address to receive the notification about the verification result. .

opt_in_confirmation_message

The confirmation message sent to users when they opt in to receive messages.

opt_in_image_urls

Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. An array reference.

opt_in_keywords

List of keywords that users can text in to opt in to receive messages. An array reference.

opt_in_type

One of VERBAL, WEB_FORM, PAPER_FORM, VIA_TEXT, MOBILE_QR_CODE, IMPORT or IMPORT_PLEASE_REPLACE.

privacy_policy_url

The URL to the privacy policy for the business or organization.

production_message_sample

An example of message content, i.e. a sample message.

terms_and_conditions_url

The URL to the terms and conditions for the business or organization.

use_case_categories

One of TWO_FACTOR_AUTHENTICATION, ACCOUNT_NOTIFICATIONS, CUSTOMER_CARE, CHARITY_NONPROFIT, DELIVERY_NOTIFICATIONS, FRAUD_ALERT_MESSAGING, EVENTS, HIGHER_EDUCATION, K12, MARKETING, POLLING_AND_VOTING_NON_POLITICAL, POLITICAL_ELECTION_CAMPAIGNS, PUBLIC_SERVICE_ANNOUNCEMENT or SECURITY_ALERT. An array reference.

use_case_summary

Use this to further explain how messaging is used by the business or organization.

vetting_id

The unique ID of the vetting

vetting_provider

Must be CAMPAIGN_VERIFY.

delete

$client->messaging->v1->tollfree_verifications($sid)->delete;

Delete a tollfree verification. Returns true.

TollfreeVerificationInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the Tollfree Verification resource.

additional_information

Additional information to be provided for verification.

age_gated_content

Indicates if the content is age gated.

business_city

The city of the business or organization using the Tollfree number.

business_contact_email

The email address of the contact for the business or organization using the Tollfree number.

business_contact_first_name

The first name of the contact for the business or organization using the Tollfree number.

business_contact_last_name

The last name of the contact for the business or organization using the Tollfree number.

business_contact_phone

The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.

business_country

The country of the business or organization using the Tollfree number.

business_name

The name of the business or organization using the Tollfree number.

business_postal_code

The postal code of the business or organization using the Tollfree number.

business_registration_authority

One of EIN, CBN, CRN, PROVINCIAL_NUMBER, VAT, ACN, ABN, BRN, SIREN, SIRET, NZBN, USt-IdNr, CIF, NIF, CNPJ, UID, NEQ or OTHER.

business_registration_country

Country business is registered in

business_registration_number

A legally recognized business registration number

business_registration_phone_number

The E.164 formatted number associated with the business.

business_state_province_region

The state/province/region of the business or organization using the Tollfree number.

business_street_address

The address of the business or organization using the Tollfree number.

business_street_address2

The address of the business or organization using the Tollfree number.

business_type

One of PRIVATE_PROFIT, PUBLIC_PROFIT, SOLE_PROPRIETOR, NON_PROFIT or GOVERNMENT.

business_website

The website of the business or organization using the Tollfree number.

customer_profile_sid

Customer's Profile Bundle BundleSid.

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.

doing_business_as

Trade name, sub entity, or downstream business name of business being submitted for verification

edit_allowed

If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.

edit_expiration

The date and time when the ability to edit a rejected verification expires. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

error_code

The error code given when a Tollfree Verification has been rejected.

external_reference_id

An optional external reference ID supplied by customer and echoed back on status retrieval.

help_message_sample

A sample help message provided to users.

message_volume

Estimate monthly volume of messages from the Tollfree Number.

notification_email

The email address to receive the notification about the verification result. .

opt_in_confirmation_message

The confirmation message sent to users when they opt in to receive messages.

opt_in_image_urls

Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.

opt_in_keywords

List of keywords that users can send to opt in or out of messages.

opt_in_type

One of VERBAL, WEB_FORM, PAPER_FORM, VIA_TEXT, MOBILE_QR_CODE, IMPORT or IMPORT_PLEASE_REPLACE.

privacy_policy_url

The URL to the privacy policy for the business or organization.

production_message_sample

An example of message content, i.e. a sample message.

regulated_item_sid

The SID of the Regulated Item.

rejection_reason

The rejection reason given when a Tollfree Verification has been rejected.

rejection_reasons

A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.

The URLs of the documents associated with the Tollfree Verification resource.

sid

The unique string to identify Tollfree Verification.

status

One of PENDING_REVIEW, IN_REVIEW, TWILIO_APPROVED or TWILIO_REJECTED.

terms_and_conditions_url

The URL of the terms and conditions for the business or organization.

tollfree_phone_number

The E.164 formatted toll-free phone number associated with the verification.

tollfree_phone_number_sid

The SID of the Phone Number associated with the Tollfree Verification.

trust_product_sid

Tollfree TrustProduct Bundle BundleSid.

url

The absolute URL of the Tollfree Verification resource.

use_case_categories

No description in the specification.

use_case_summary

Use this to further explain how messaging is used by the business or organization.

vetting_id

No description in the specification.

vetting_id_expiration

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

vetting_provider

Must be CAMPAIGN_VERIFY.

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.