Create linkshortening messaging service
Path parameters
-
The domain SID to associate with a messaging service. With URL shortening enabled, links in messages sent with the associated messaging service will be shortened to the provided domain
Minimum length is
34, maximum length is34. Format should match the following pattern:^DN[0-9a-fA-F]{32}$. -
A messaging service SID to associate with a domain. With URL shortening enabled, links in messages sent with the provided messaging service will be shortened to the associated domain
Minimum length is
34, maximum length is34. Format should match the following pattern:^MG[0-9a-fA-F]{32}$.
POST
/v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid}
curl \
--request POST 'https://messaging.twilio.com/v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid}' \
--user "username:password"
Response examples (201)
{
"url": "https://messaging.twilio.com/v1/LinkShortening/Domains/DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/MessagingServices/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"domain_sid": "DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}