NAME
Twilio::Rest::Conversations::V1::Configuration - The Configuration resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $configuration = $client->conversations->v1->configuration->fetch;
$client->conversations->v1->configuration->update(\%options);
DESCRIPTION
The Configuration resource manages a set of account-level settings applicable to the Conversations API.
This file holds ConfigurationContext and ConfigurationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ConfigurationContext
Returned by $client->conversations->v1->configuration. It makes no request until one of these methods is called.
fetch
my $configuration = $client->conversations->v1->configuration->fetch;
Fetch the global configuration of conversations on your account. Returns a ConfigurationInstance.
update
my $configuration = $client->conversations->v1->configuration->update(\%options);
Update the global configuration of conversations on your account. Returns a ConfigurationInstance.
The options are:
default_chat_service_sid-
The SID of the default Conversation Service to use when creating a conversation.
default_closed_timer-
Default ISO8601 duration when conversation will be switched to
closedstate. Minimum value for this timer is 10 minutes. default_inactive_timer-
Default ISO8601 duration when conversation will be switched to
inactivestate. Minimum value for this timer is 1 minute. default_messaging_service_sid-
The SID of the default Messaging Service to use when creating a conversation.
webhooks
my $context = $object->webhooks;
See Twilio::Rest::Conversations::V1::Configuration::Webhook.
ConfigurationInstance
See also Twilio::InstanceResource.
It has fetch, update and webhooks, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account responsible for this configuration.
- default_chat_service_sid
-
The SID of the default Conversation Service used when creating a conversation.
- default_closed_timer
-
Default ISO8601 duration when conversation will be switched to
closedstate. Minimum value for this timer is 10 minutes. - default_inactive_timer
-
Default ISO8601 duration when conversation will be switched to
inactivestate. Minimum value for this timer is 1 minute. - default_messaging_service_sid
-
The SID of the default Messaging Service used when creating a conversation.
- links
-
Contains absolute API resource URLs to access the webhook and default service configurations.
- url
-
An absolute API resource URL for this global 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.