NAME

Twilio::Rest::Conversations::V1::AddressConfiguration - The AddressConfiguration resource

SYNOPSIS

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

my $address_configuration = $client->conversations->v1->address_configurations->create($type, $address, \%options);
for my $address_configuration ($client->conversations->v1->address_configurations->read({}, 20)) {
  ...
}
my $address_configuration = $client->conversations->v1->address_configurations($sid)->fetch;
$client->conversations->v1->address_configurations($sid)->update(\%options);
$client->conversations->v1->address_configurations($sid)->delete;

DESCRIPTION

Address Configuration resource manages the configurations related to a unique address within Conversations

This file holds AddressConfigurationList, AddressConfigurationPage, AddressConfigurationContext and AddressConfigurationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

AddressConfigurationList

Returned by $client->conversations->v1->address_configurations. See also Twilio::ListResource.

create

my $address_configuration = $client->conversations->v1->address_configurations->create($type, $address, \%options);

Create a new address configuration. Returns a AddressConfigurationInstance.

The required values are:

$type

One of sms, whatsapp, messenger, gbm, email, rcs, apple or chat.

$address

The unique address to be configured. The address can be a whatsapp address or phone number

The options are:

address_country

An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.

auto_creation_conversation_service_sid

Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service.

auto_creation_enabled

Enable/Disable auto-creating conversations for messages to this address

auto_creation_studio_flow_sid

For type studio, the studio flow SID where the webhook should be sent to.

auto_creation_studio_retry_count

For type studio, number of times to retry the webhook request

auto_creation_type

One of webhook, studio or default.

auto_creation_webhook_filters

The list of events, firing webhook event for this Conversation. Values can be any of the following: onMessageAdded, onMessageUpdated, onMessageRemoved, onConversationUpdated, onConversationStateUpdated, onConversationRemoved, onParticipantAdded, onParticipantUpdated, onParticipantRemoved, onDeliveryUpdated An array reference.

auto_creation_webhook_method

One of get or post.

auto_creation_webhook_url

For type webhook, the url for the webhook request.

friendly_name

The human-readable name of this configuration, limited to 256 characters. Optional.

read

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

Retrieve a list of address configurations for an account. Returns the records as a list, fetching as many pages as it needs.

The options are:

type

Filter the address configurations by its type. This value can be one of: whatsapp, sms.

stream

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

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

page

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

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

get_page

my $page = $client->conversations->v1->address_configurations->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->conversations->v1->address_configurations->get_context($sid);

Returns a AddressConfigurationContext, and makes no request.

AddressConfigurationPage

A Twilio::Page of AddressConfigurationInstance objects.

records_key

build_instance

Used by Twilio::Page.

AddressConfigurationContext

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

fetch

my $address_configuration = $client->conversations->v1->address_configurations($sid)->fetch;

Fetch an address configuration. Returns a AddressConfigurationInstance.

update

my $address_configuration = $client->conversations->v1->address_configurations($sid)->update(\%options);

Update an existing address configuration. Returns a AddressConfigurationInstance.

The options are:

auto_creation_conversation_service_sid

Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service.

auto_creation_enabled

Enable/Disable auto-creating conversations for messages to this address

auto_creation_studio_flow_sid

For type studio, the studio flow SID where the webhook should be sent to.

auto_creation_studio_retry_count

For type studio, number of times to retry the webhook request

auto_creation_type

One of webhook, studio or default.

auto_creation_webhook_filters

The list of events, firing webhook event for this Conversation. Values can be any of the following: onMessageAdded, onMessageUpdated, onMessageRemoved, onConversationUpdated, onConversationStateUpdated, onConversationRemoved, onParticipantAdded, onParticipantUpdated, onParticipantRemoved, onDeliveryUpdated An array reference.

auto_creation_webhook_method

One of get or post.

auto_creation_webhook_url

For type webhook, the url for the webhook request.

friendly_name

The human-readable name of this configuration, limited to 256 characters. Optional.

delete

$client->conversations->v1->address_configurations($sid)->delete;

Remove an existing address configuration. Returns true.

AddressConfigurationInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The unique ID of the Account the address belongs to

address

The unique address to be configured. The address can be a whatsapp address or phone number

address_country

An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.

auto_creation

Auto Creation configuration for the address.

date_created

The date that this resource was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date that this resource was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

The human-readable name of this configuration, limited to 256 characters. Optional.

sid

A 34 character string that uniquely identifies this resource.

type

Type of Address, value can be whatsapp or sms.

url

An absolute API resource URL for this address configuration.

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.