NAME
Twilio::Rest::Conversations::V2::Configuration - The Configuration resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $configuration = $client->conversations->v2->configurations->create(\%body, \%options);
for my $configuration ($client->conversations->v2->configurations->read({}, 20)) {
...
}
my $configuration = $client->conversations->v2->configurations($id)->fetch;
$client->conversations->v2->configurations($id)->patch(\%body, \%options);
$client->conversations->v2->configurations($id)->update(\%body, \%options);
$client->conversations->v2->configurations($id)->delete;
DESCRIPTION
This file holds ConfigurationList, ConfigurationPage, ConfigurationContext, ConfigurationInstance and CreateConfiguration202ResponseInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ConfigurationList
Returned by $client->conversations->v2->configurations. See also Twilio::ListResource.
create
my $configuration = $client->conversations->v2->configurations->create(\%body, \%options);
Create a new Configuration. Returns a CreateConfiguration202ResponseInstance.
%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.
Its fields are:
channelSettings-
No description in the specification.
conversationGroupingType-
Required. Type of Conversation grouping strategy: -
GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created forCUSTOMERParticipant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. -GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. -GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice. One ofGROUP_BY_PROFILE,GROUP_BY_PARTICIPANT_ADDRESSESorGROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE. conversationsV1Bridge-
Configuration for Conversations V1 bridge. When set, messaging channels route through Conversations V1. Use this to integrate with existing Conversations V1 applications.
description-
Required. Human-readable description for the configuration.
displayName-
Required. A human-readable name for the configuration. Limited to 32 characters.
intelligenceConfigurationIds-
A list of Conversational Intelligence configuration IDs.
memoryExtractionEnabled-
Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
memoryStoreId-
Required. The memory store ID that Conversation Orchestrator uses for profile resolution.
statusCallbacks-
A list of webhook configurations.
The options are:
idempotency_key-
Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
read
my @records = $client->conversations->v2->configurations->read(\%options, $limit, $page_size);
Retrieve a list of Configurations. Returns the records as a list, fetching as many pages as it needs.
The options are:
memory_store_id-
Filter configurations by Memory Store ID
stream
my $stream = $client->conversations->v2->configurations->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->conversations->v2->configurations->page(\%options, $page_size, $page_token);
Fetches one page, and returns a Twilio::TokenPaginationPage. This API pages by token, so there is no page number.
get_page
my $page = $client->conversations->v2->configurations->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->conversations->v2->configurations->get_context($id);
Returns a ConfigurationContext, and makes no request.
ConfigurationPage
A Twilio::Page of ConfigurationInstance objects.
records_key
build_instance
Used by Twilio::Page.
ConfigurationContext
Returned by $client->conversations->v2->configurations($id). It makes no request until one of these methods is called.
fetch
my $configuration = $client->conversations->v2->configurations($id)->fetch;
Retrieve a Configuration. Returns a ConfigurationInstance.
patch
my $configuration = $client->conversations->v2->configurations($id)->patch(\%body, \%options);
Partially update a Configuration. Only fields present in the request body are changed; omitted fields are left untouched. For channelSettings, an omitted channel key is preserved, a channel key mapped to a value replaces that channel's settings, and a channel key explicitly mapped to null removes it. Returns a CreateConfiguration202ResponseInstance.
%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.
Its fields are:
channelSettings-
Channel-specific settings to merge onto the existing channelSettings map. A channel key mapped to a value replaces that channel's settings; a channel key explicitly mapped to null removes it; an omitted channel key is left untouched.
conversationGroupingType-
Type of Conversation grouping strategy: -
GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created forCUSTOMERParticipant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. -GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. -GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice. One ofGROUP_BY_PROFILE,GROUP_BY_PARTICIPANT_ADDRESSESorGROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE. conversationsV1Bridge-
Configuration for Conversations V1 bridge. When set, messaging channels route through Conversations V1. Use this to integrate with existing Conversations V1 applications.
description-
Human-readable description for the configuration.
displayName-
A human-readable name for the configuration. Limited to 32 characters.
intelligenceConfigurationIds-
A list of Conversational Intelligence configuration IDs.
memoryExtractionEnabled-
Whether memory extraction is enabled for conversations under this configuration.
memoryStoreId-
The Memory Store ID for profile resolution.
statusCallbacks-
No description in the specification.
The options are:
idempotency_key-
Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
update
my $configuration = $client->conversations->v2->configurations($id)->update(\%body, \%options);
Update an existing Configuration. Returns a CreateConfiguration202ResponseInstance.
%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.
Its fields are:
channelSettings-
Required. No description in the specification.
conversationGroupingType-
Required. Type of Conversation grouping strategy: -
GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created forCUSTOMERParticipant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. -GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. -GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice. One ofGROUP_BY_PROFILE,GROUP_BY_PARTICIPANT_ADDRESSESorGROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE. conversationsV1Bridge-
Configuration for Conversations V1 bridge. When set, messaging channels route through Conversations V1. Use this to integrate with existing Conversations V1 applications.
description-
Required. Human-readable description for the configuration.
displayName-
A human-readable name for the configuration. Limited to 32 characters.
intelligenceConfigurationIds-
A list of Conversational Intelligence configuration IDs.
memoryExtractionEnabled-
Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
memoryStoreId-
Required. The Memory Store ID for profile resolution.
statusCallbacks-
No description in the specification.
The options are:
idempotency_key-
Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
delete
$client->conversations->v2->configurations($id)->delete(\%options);
Delete a Configuration. Returns a CreateConfiguration202ResponseInstance.
The options are:
idempotency_key-
Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
ConfigurationInstance
See also Twilio::InstanceResource.
It has fetch, patch, update and delete, which work as they do on the context.
Its fields are:
- channel_settings
-
Channel-specific configuration settings including timeout settings and capture rules.
- conversation_grouping_type
-
One of
GROUP_BY_PROFILE,GROUP_BY_PARTICIPANT_ADDRESSESorGROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE. - conversations_v1_bridge
-
Configuration for Conversations V1 bridge. When set, messaging channels route through Conversations V1. Use this to integrate with existing Conversations V1 applications.
- created_at
-
Timestamp when this Configuration was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- description
-
Human-readable description for the Configuration. Allows spaces and special characters, typically limited to a paragraph of text. This serves as a descriptive field rather than just a name.
- display_name
-
A human-readable name for the configuration. Limited to 32 characters.
- id
-
Configuration ID.
- intelligence_configuration_ids
-
A list of Conversational Intelligence configuration IDs.
- memory_extraction_enabled
-
Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
- memory_store_id
-
Memory Store ID for Profile resolution.
- observation_extraction_strategy_ids
-
A list of Observation Extraction Strategy IDs.
- redaction_configuration_id
-
No description in the specification.
- status_callbacks
-
List of default webhook configurations applied to Conversations under this Configuration.
- trait_extraction_strategy_ids
-
A list of Trait Extraction Strategy IDs.
- updated_at
-
Timestamp when this Configuration was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- version
-
Version number used for optimistic locking.
CreateConfiguration202ResponseInstance
Returned by create, update, patch and delete, for an answer that is not a Configuration. See also Twilio::InstanceResource.
Its fields are:
-
Named resource identifiers associated with this operation. Keys depend on the operation type: - config-create, config-update, config-delete: configurationId - conversation-delete: conversationId
- status_url
-
URL to poll for operation status.
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.