NAME
Twilio::Rest::Messaging::V1::DomainConfig - The DomainConfig resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $domain_config = $client->messaging->v1->domain_config($domain_sid)->fetch;
$client->messaging->v1->domain_config($domain_sid)->update(\%options);
DESCRIPTION
This file holds DomainConfigContext and DomainConfigInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
DomainConfigContext
Returned by $client->messaging->v1->domain_config($domain_sid). It makes no request until one of these methods is called.
fetch
my $domain_config = $client->messaging->v1->domain_config($domain_sid)->fetch;
Returns a DomainConfigInstance.
update
my $domain_config = $client->messaging->v1->domain_config($domain_sid)->update(\%options);
Returns a DomainConfigInstance.
The options are:
callback_url-
URL to receive click events to your webhook whenever the recipients click on the shortened links
continue_on_failure-
Boolean field to set customer delivery preference when there is a failure in linkShortening service
disable_https-
Customer's choice to send links with/without "https://" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.
fallback_url-
Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
DomainConfigInstance
See also Twilio::InstanceResource.
It has fetch and update, which work as they do on the context.
Its fields are:
- callback_url
-
URL to receive click events to your webhook whenever the recipients click on the shortened links.
- config_sid
-
The unique string that we created to identify the Domain config (prefix ZK).
- continue_on_failure
-
Boolean field to set customer delivery preference when there is a failure in linkShortening service
- date_created
-
Date this Domain Config was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
Date that this Domain Config was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- disable_https
-
Customer's choice to send links with/without "https://" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.
- domain_sid
-
The unique string that we created to identify the Domain resource.
- fallback_url
-
Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
- url
-
No description in the specification.
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.