Path parameters
-
Unique string used to identify the domain that this config should be associated with.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^DN[0-9a-fA-F]{32}$
.
Body
-
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 to receive click events to your webhook whenever the recipients click on the shortened links
-
Boolean field to set customer delivery preference when there is a failure in linkShortening service
-
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.
curl \
--request POST 'https://messaging.twilio.com/v1/LinkShortening/Domains/{DomainSid}/Config' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'CallbackUrl=https%3A%2F%2Fwww.example.com&FallbackUrl=https%3A%2F%2Fwww.example.com&DisableHttps=false&ContinueOnFailure=true'
{"CallbackUrl"=>"https://www.example.com", "FallbackUrl"=>"https://www.example.com", "DisableHttps"=>false, "ContinueOnFailure"=>true}
{"CallbackUrl"=>"https://www.example.com", "FallbackUrl"=>"https://www.example.com", "DisableHttps"=>false, "ContinueOnFailure"=>true}
{
"url": "https://messaging.twilio.com/v1/LinkShortening/Domains/DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Config",
"config_sid": "ZKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"domain_sid": "DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"callback_url": "https://www.example.com",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"fallback_url": "https://www.example.com",
"disable_https": false,
"continue_on_failure": true
}
{
"url": "https://messaging.twilio.com/v1/LinkShortening/Domains/DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Config",
"config_sid": "ZKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"domain_sid": "DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"callback_url": "https://www.example.com",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"fallback_url": "https://www.example.com",
"disable_https": false,
"continue_on_failure": true
}