NAME

Twilio::Rest::Numbers::V2::Application - The Application resource

SYNOPSIS

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

my $application = $client->numbers->v2->applications->create(\%body);
for my $application ($client->numbers->v2->applications->read({}, 20)) {
  ...
}
my $application = $client->numbers->v2->applications($sid)->fetch;

DESCRIPTION

This file holds ApplicationList, ApplicationPage, ApplicationContext and ApplicationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ApplicationList

Returned by $client->numbers->v2->applications. See also Twilio::ListResource.

create

my $application = $client->numbers->v2->applications->create(\%body);

Create a new short code application for an account. Returns a ApplicationInstance.

%body is sent as JSON. It takes the names Twilio's API documentation uses.

Its fields are:

business_information

Required. Business information associated with the application.

friendly_name

Required. The friendly name for the short code application.

iso_country

Required. The ISO country code.

setup

Required. No description in the specification.

read

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

list of all short code applications for an account. Returns the records as a list, fetching as many pages as it needs.

The options are:

account_sid

The Account SID to filter by.

friendly_name

The friendly name to filter by.

iso_country

The ISO country to filter by.

sid

The application SID to filter by.

status

The application status to filter by.

stream

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

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

page

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

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

get_page

my $page = $client->numbers->v2->applications->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->numbers->v2->applications->get_context($sid);

Returns a ApplicationContext, and makes no request.

ApplicationPage

A Twilio::Page of ApplicationInstance objects.

records_key

build_instance

Used by Twilio::Page.

ApplicationContext

Returned by $client->numbers->v2->applications($sid). It makes no request until one of these methods is called.

fetch

my $application = $client->numbers->v2->applications($sid)->fetch;

Fetch a specific Short Code Application instance. Returns a ApplicationInstance.

ApplicationInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The Account SID associated with the application.

application_requirements_sid

The Application Requirements SID.

application_requirements_version

The version of the application requirements.

bundle_sid

The Bundle SID for regulatory compliance.

business_information

Business information associated with the application.

compliance_keywords

Compliance keywords for the application.

content_examples

Content examples for the application.

created_by

The identity of the user who created the application.

date_created

The date and time the application was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time the application was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

The friendly name of the application.

iso_country

The ISO country code.

notification_emails

The notification emails for the application.

reviewer

The reviewer of the application.

setup

Setup configuration for the application.

sid

The unique identifier of the Short Code Application.

sms_campaign_details

SMS campaign details for the application.

state

The state of the application. One of DRAFT, TWILIO_REVIEW, PENDING_PAYMENT, PAYMENT_FAILED, IN_PROVISIONING, PENDING_CARRIER, APPROVED, CORRECTIONS_NEEDED, CANCELED or ARCHIVED.

updated_by

The identity of the user who last updated the application.

user_sign_up

User sign-up configuration for the application.

zendesk_ticket_id

The Zendesk ticket ID associated with the application.

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.