NAME

Twilio::Rest::Api::V2010::Account::Application - The Application resource

SYNOPSIS

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

my $application = $client->applications->create(\%options);
for my $application ($client->applications->read({}, 20)) {
  ...
}
my $application = $client->applications($sid)->fetch;
$client->applications($sid)->update(\%options);
$client->applications($sid)->delete;

DESCRIPTION

An Application instance resource represents an application that you have created with Twilio. An application inside of Twilio is just a set of URLs and other configuration data that tells Twilio how to behave when one of your Twilio numbers receives a call or SMS message.

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->applications. See also Twilio::ListResource.

create

my $application = $client->applications->create(\%options);

Create a new application within your account. Returns a ApplicationInstance.

The options are:

api_version

The API version to use to start a new TwiML session. Can be: 2010-04-01 or 2008-08-01. The default value is the account's default API version.

friendly_name

A descriptive string that you create to describe the new application. It can be up to 64 characters long.

message_status_callback

The URL we should call using a POST method to send message status information to your application.

public_application_connect_enabled

Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: true or false.

sms_fallback_method

The HTTP method we should use to call sms_fallback_url. Can be: GET or POST. One of GET or POST.

sms_fallback_url

The URL that we should call when an error occurs while retrieving or executing the TwiML from sms_url.

sms_method

The HTTP method we should use to call sms_url. Can be: GET or POST. One of GET or POST.

sms_status_callback

The URL we should call using a POST method to send status information about SMS messages sent by the application.

sms_url

The URL we should call when the phone number receives an incoming SMS message.

status_callback

The URL we should call using the status_callback_method to send status information to your application.

status_callback_method

The HTTP method we should use to call status_callback. Can be: GET or POST. One of GET or POST.

voice_caller_id_lookup

Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: true or false.

voice_fallback_method

The HTTP method we should use to call voice_fallback_url. Can be: GET or POST. One of GET or POST.

voice_fallback_url

The URL that we should call when an error occurs retrieving or executing the TwiML requested by url.

voice_method

The HTTP method we should use to call voice_url. Can be: GET or POST. One of GET or POST.

voice_url

The URL we should call when the phone number assigned to this application receives a call.

read

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

Retrieve a list of applications representing an application within the requesting account. Returns the records as a list, fetching as many pages as it needs.

The options are:

friendly_name

The string that identifies the Application resources to read.

stream

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

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

page

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

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

get_page

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

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->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->applications($sid). It makes no request until one of these methods is called.

fetch

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

Fetch the application specified by the provided sid. Returns a ApplicationInstance.

update

my $application = $client->applications($sid)->update(\%options);

Updates the application's properties. Returns a ApplicationInstance.

The options are:

api_version

The API version to use to start a new TwiML session. Can be: 2010-04-01 or 2008-08-01. The default value is your account's default API version.

friendly_name

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

message_status_callback

The URL we should call using a POST method to send message status information to your application.

public_application_connect_enabled

Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: true or false.

sms_fallback_method

The HTTP method we should use to call sms_fallback_url. Can be: GET or POST. One of GET or POST.

sms_fallback_url

The URL that we should call when an error occurs while retrieving or executing the TwiML from sms_url.

sms_method

The HTTP method we should use to call sms_url. Can be: GET or POST. One of GET or POST.

sms_status_callback

Same as message_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application. Deprecated, included for backwards compatibility.

sms_url

The URL we should call when the phone number receives an incoming SMS message.

status_callback

The URL we should call using the status_callback_method to send status information to your application.

status_callback_method

The HTTP method we should use to call status_callback. Can be: GET or POST. One of GET or POST.

voice_caller_id_lookup

Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: true or false.

voice_fallback_method

The HTTP method we should use to call voice_fallback_url. Can be: GET or POST. One of GET or POST.

voice_fallback_url

The URL that we should call when an error occurs retrieving or executing the TwiML requested by url.

voice_method

The HTTP method we should use to call voice_url. Can be: GET or POST. One of GET or POST.

voice_url

The URL we should call when the phone number assigned to this application receives a call.

delete

$client->applications($sid)->delete;

Delete the application by the specified application sid. Returns true.

ApplicationInstance

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 Application resource.

api_version

The API version used to start a new TwiML session.

date_created

The date and time in GMT that 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 that the resource was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

The string that you assigned to describe the resource.

message_status_callback

The URL we call using a POST method to send message status information to your application.

public_application_connect_enabled

Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: true or false.

sid

The unique string that that we created to identify the Application resource.

sms_fallback_method

The HTTP method we use to call sms_fallback_url. Can be: GET or POST. One of GET or POST.

sms_fallback_url

The URL that we call when an error occurs while retrieving or executing the TwiML from sms_url.

sms_method

The HTTP method we use to call sms_url. Can be: GET or POST. One of GET or POST.

sms_status_callback

The URL we call using a POST method to send status information to your application about SMS messages that refer to the application.

sms_url

The URL we call when the phone number receives an incoming SMS message.

status_callback

The URL we call using the status_callback_method to send status information to your application.

status_callback_method

The HTTP method we use to call status_callback. Can be: GET or POST. One of GET or POST.

uri

The URI of the resource, relative to https://api.twilio.com.

voice_caller_id_lookup

Whether we look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: true or false.

voice_fallback_method

The HTTP method we use to call voice_fallback_url. Can be: GET or POST. One of GET or POST.

voice_fallback_url

The URL that we call when an error occurs retrieving or executing the TwiML requested by url.

voice_method

The HTTP method we use to call voice_url. Can be: GET or POST. One of GET or POST.

voice_url

The URL we call when the phone number assigned to this application receives a call.

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.